pub enum TryPublishError<T> {
Full(T),
Closed(T),
}Expand description
Error returned by a non-blocking event publish attempt.
The event is returned so callers can retry, persist, or discard it.
Variants§
Full(T)
The bounded queue has no available capacity.
Closed(T)
The mediator is shutting down or its event worker is unavailable.
Trait Implementations§
Source§impl<T: Debug> Debug for TryPublishError<T>
impl<T: Debug> Debug for TryPublishError<T>
impl<T: Eq> Eq for TryPublishError<T>
Source§impl<T: PartialEq> PartialEq for TryPublishError<T>
impl<T: PartialEq> PartialEq for TryPublishError<T>
impl<T: PartialEq> StructuralPartialEq for TryPublishError<T>
Auto Trait Implementations§
impl<T> Freeze for TryPublishError<T>where
T: Freeze,
impl<T> RefUnwindSafe for TryPublishError<T>where
T: RefUnwindSafe,
impl<T> Send for TryPublishError<T>where
T: Send,
impl<T> Sync for TryPublishError<T>where
T: Sync,
impl<T> Unpin for TryPublishError<T>where
T: Unpin,
impl<T> UnsafeUnpin for TryPublishError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TryPublishError<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