pub struct ClientEvents {
pub info: Option<Box<dyn FnMut(&ClientInfo<'_>) + Send>>,
pub permissions: Option<Box<dyn FnMut(u32, &[Permission]) + Send>>,
}Expand description
Client events that can be subscribed to.
Fields§
§info: Option<Box<dyn FnMut(&ClientInfo<'_>) + Send>>Client information became available, or changed.
permissions: Option<Box<dyn FnMut(u32, &[Permission]) + Send>>Client permissions, notified due to a Client::permissions() call.
Trait Implementations§
Source§impl Default for ClientEvents
impl Default for ClientEvents
Source§fn default() -> ClientEvents
fn default() -> ClientEvents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientEvents
impl !RefUnwindSafe for ClientEvents
impl Send for ClientEvents
impl !Sync for ClientEvents
impl Unpin for ClientEvents
impl !UnwindSafe for ClientEvents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more