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§
Sourcefn with_queue<R>(
&self,
id: NonZeroU32,
f: impl FnOnce(&Queue) -> R,
) -> Result<R, String>
fn with_queue<R>( &self, id: NonZeroU32, f: impl FnOnce(&Queue) -> R, ) -> Result<R, String>
§Errors
Sourcefn with_opt_queue<R>(
&self,
id: Option<NonZeroU32>,
f: impl FnOnce(QueueId, &Queue) -> R,
) -> Result<R, String>
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.