pub enum NodeEvent {
SessionCreated(Address<Session>, String),
SessionDeleted(Address<Session>),
}Expand description
A message which is used to notify the receiver of an IPC session is created or deleted.
Variants§
Trait Implementations§
Source§impl SubjectActor<NodeEvent> for Node
impl SubjectActor<NodeEvent> for Node
Source§fn observers_mut(&mut self) -> &mut ObserverSet<NodeEvent>
fn observers_mut(&mut self) -> &mut ObserverSet<NodeEvent>
Returns a mutable reference to the set of observers for this event type.
Source§fn register_observer(&mut self, observer: Recipient<Event>)
fn register_observer(&mut self, observer: Recipient<Event>)
Registers an observer.
Source§fn unregister_observer(&mut self, observer: Recipient<Event>)
fn unregister_observer(&mut self, observer: Recipient<Event>)
Unregisters an observer.
Source§fn notify_observers(&mut self, event: Event) -> impl Future<Output = ()> + Send
fn notify_observers(&mut self, event: Event) -> impl Future<Output = ()> + Send
Notifies all observers. Read more
Source§fn try_notify_observers(&mut self, event: Event)
fn try_notify_observers(&mut self, event: Event)
Notifies all observers. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NodeEvent
impl !UnwindSafe for NodeEvent
impl Freeze for NodeEvent
impl Send for NodeEvent
impl Sync for NodeEvent
impl Unpin for NodeEvent
impl UnsafeUnpin for NodeEvent
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