pub enum TopicTryPublishError<T> {
Closed(T),
Full(T),
Busy(T),
}Expand description
Error returned by Topic::try_publish.
Variants§
Closed(T)
The topic is closed; the unpublished value is returned.
Full(T)
The call would need to wait for subscriber capacity under
TopicOverflow::Backpressure; the unpublished value is returned.
Busy(T)
Another publisher currently owns an earlier global publish turn; the unpublished value is returned rather than blocking behind it.
Trait Implementations§
Source§impl<T: Clone> Clone for TopicTryPublishError<T>
impl<T: Clone> Clone for TopicTryPublishError<T>
Source§fn clone(&self) -> TopicTryPublishError<T>
fn clone(&self) -> TopicTryPublishError<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TopicTryPublishError<T>
impl<T: Debug> Debug for TopicTryPublishError<T>
Source§impl<T> Display for TopicTryPublishError<T>
impl<T> Display for TopicTryPublishError<T>
impl<T: Eq> Eq for TopicTryPublishError<T>
Source§impl<T: PartialEq> PartialEq for TopicTryPublishError<T>
impl<T: PartialEq> PartialEq for TopicTryPublishError<T>
Source§fn eq(&self, other: &TopicTryPublishError<T>) -> bool
fn eq(&self, other: &TopicTryPublishError<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: PartialEq> StructuralPartialEq for TopicTryPublishError<T>
Auto Trait Implementations§
impl<T> Freeze for TopicTryPublishError<T>where
T: Freeze,
impl<T> RefUnwindSafe for TopicTryPublishError<T>where
T: RefUnwindSafe,
impl<T> Send for TopicTryPublishError<T>where
T: Send,
impl<T> Sync for TopicTryPublishError<T>where
T: Sync,
impl<T> Unpin for TopicTryPublishError<T>where
T: Unpin,
impl<T> UnsafeUnpin for TopicTryPublishError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TopicTryPublishError<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage