LoginQueue

Trait LoginQueue 

Source
pub trait LoginQueue {
    // Required methods
    fn with_queue<R>(
        &self,
        id: NonZeroU32,
        f: impl FnOnce(&Queue) -> R,
    ) -> Result<R, String>;
    fn with_opt_queue<R>(
        &self,
        id: Option<NonZeroU32>,
        f: impl FnOnce(QueueId, &Queue) -> R,
    ) -> Result<R, String>;
}
Available on crate feature ssr only.

Required Methods§

Source

fn with_queue<R>( &self, id: NonZeroU32, f: impl FnOnce(&Queue) -> R, ) -> Result<R, String>

§Errors
Source

fn with_opt_queue<R>( &self, id: Option<NonZeroU32>, f: impl FnOnce(QueueId, &Queue) -> R, ) -> Result<R, String>

§Errors

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl LoginQueue for LoginState

Source§

fn with_queue<R>( &self, id: NonZeroU32, f: impl FnOnce(&Queue) -> R, ) -> Result<R, String>

Source§

fn with_opt_queue<R>( &self, id: Option<NonZeroU32>, f: impl FnOnce(QueueId, &Queue) -> R, ) -> Result<R, String>

Implementors§