pub(crate) enum Message {
AddAdapter {
id: usize,
activation_handler: Box<dyn ActivationHandler + Send>,
deactivation_handler: Box<dyn DeactivationHandler + Send>,
state: Arc<Mutex<AdapterState>>,
},
RemoveAdapter {
id: usize,
},
RegisterInterfaces {
node: PlatformNode,
interfaces: InterfaceSet,
},
UnregisterInterfaces {
adapter_id: usize,
node_id: NodeId,
interfaces: InterfaceSet,
},
EmitEvent {
adapter_id: usize,
event: Event,
},
}Variants§
AddAdapter
Fields
§
activation_handler: Box<dyn ActivationHandler + Send>§
deactivation_handler: Box<dyn DeactivationHandler + Send>§
state: Arc<Mutex<AdapterState>>RemoveAdapter
RegisterInterfaces
UnregisterInterfaces
EmitEvent
Auto Trait Implementations§
impl Freeze for Message
impl !RefUnwindSafe for Message
impl Send for Message
impl !Sync for Message
impl Unpin for Message
impl !UnwindSafe for Message
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