Enum bastion::errors::SendError [−][src]
pub enum SendError {
Disconnected(Msg),
Full(Msg),
Other(Error),
NoDistributor(String),
EmptyRecipient,
}
Expand description
SendError
s occur when a message couldn’t be dispatched through a distributor
Variants
Disconnected(Msg)
Tuple Fields
0: Msg
Channel has been closed before we could send a message
Full(Msg)
Tuple Fields
0: Msg
Channel is full, can’t send a message
Other(Error)
Tuple Fields
0: Error
This error is returned when we try to send a message that is not a BastionMessage::Message variant
NoDistributor(String)
Tuple Fields
0: String
The distributor we’re trying to dispatch messages to is not registered in the system
EmptyRecipient
The distributor we’re trying to dispatch messages to has no recipients
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SendError
impl !UnwindSafe for SendError
Blanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more