Enum wlancfg_lib::util::listener::Message
source · pub enum Message<P, U> {
NewListener(P),
NotifyListeners(U),
}
Expand description
Messages sent to update the current state and notify listeners or add new listeners.
Variants§
NewListener(P)
Sent if a new listener wants to register itself for future updates.
NotifyListeners(U)
Sent if an entity wants to notify all listeners about a state change.
Trait Implementations§
Auto Trait Implementations§
impl<P, U> Freeze for Message<P, U>
impl<P, U> RefUnwindSafe for Message<P, U>where
P: RefUnwindSafe,
U: RefUnwindSafe,
impl<P, U> Send for Message<P, U>
impl<P, U> Sync for Message<P, U>
impl<P, U> Unpin for Message<P, U>
impl<P, U> UnwindSafe for Message<P, U>where
P: UnwindSafe,
U: UnwindSafe,
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