pub enum RecvError {
Closed,
Lagged,
RemoteReceive(RecvError),
RemoteConnect(ConnectError),
RemoteListen(ListenerError),
}Expand description
An error occurred during receiving over a broadcast channel.
Variants
Closed
There are no more active senders implying no further messages will ever be sent.
Lagged
The receiver lagged too far behind.
Attempting to receive again will return the oldest message still retained by the channel.
RemoteReceive(RecvError)
Receiving from a remote endpoint failed.
RemoteConnect(ConnectError)
Connecting a sent channel failed.
RemoteListen(ListenerError)
Listening for a connection from a received channel failed.
Implementations
True, if the receiver has lagged behind and messages have been lost.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RecvError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RecvError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
type Error = TryRecvError
type Error = TryRecvError
The type returned in the event of a conversion error.
pub fn try_from(
err: TryRecvError
) -> Result<RecvError, <RecvError as TryFrom<TryRecvError>>::Error>
pub fn try_from(
err: TryRecvError
) -> Result<RecvError, <RecvError as TryFrom<TryRecvError>>::Error>
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RecvError
impl !UnwindSafe for RecvError
Blanket Implementations
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