pub(crate) enum RegisterResult<T> {
Notified(T),
Registered,
NeverInserted,
}Expand description
The result of registering a listener.
Variants§
Notified(T)
The listener was already notified.
Registered
The listener has been registered.
NeverInserted
The listener was never inserted into the list.
Implementations§
Trait Implementations§
Source§impl<T: Debug> Debug for RegisterResult<T>
impl<T: Debug> Debug for RegisterResult<T>
Source§impl<T: PartialEq> PartialEq for RegisterResult<T>
impl<T: PartialEq> PartialEq for RegisterResult<T>
impl<T> StructuralPartialEq for RegisterResult<T>
Auto Trait Implementations§
impl<T> Freeze for RegisterResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for RegisterResult<T>where
T: RefUnwindSafe,
impl<T> Send for RegisterResult<T>where
T: Send,
impl<T> Sync for RegisterResult<T>where
T: Sync,
impl<T> Unpin for RegisterResult<T>where
T: Unpin,
impl<T> UnwindSafe for RegisterResult<T>where
T: 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