pub struct RegistryEvents {
pub global: Option<Box<dyn FnMut(Id, PermissionBits, &str, u32, &Properties) + Send>>,
pub global_remove: Option<Box<dyn FnMut(Id) + Send>>,
}Expand description
Events that might be emitted by a Registry.
Fields§
§global: Option<Box<dyn FnMut(Id, PermissionBits, &str, u32, &Properties) + Send>>A global object was exported by the server. The object may be tracked using Registry::bind().
global_remove: Option<Box<dyn FnMut(Id) + Send>>A global was removed by the server.
Trait Implementations§
Source§impl Default for RegistryEvents
impl Default for RegistryEvents
Source§fn default() -> RegistryEvents
fn default() -> RegistryEvents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegistryEvents
impl !RefUnwindSafe for RegistryEvents
impl Send for RegistryEvents
impl !Sync for RegistryEvents
impl Unpin for RegistryEvents
impl !UnwindSafe for RegistryEvents
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