pub enum ConservativeReceiverError {
Canceled,
ReceiveBeforeSend,
}Expand description
Error that can be returned by ConservativeReceiver
Variants§
Canceled
The underlying oneshot::Receiver returned oneshot::Canceled
ReceiveBeforeSend
The underlying oneshot::Receiver returned Async::NotReady, which means it was polled before the oneshot::Sender send some data
Trait Implementations§
Source§impl Clone for ConservativeReceiverError
impl Clone for ConservativeReceiverError
Source§fn clone(&self) -> ConservativeReceiverError
fn clone(&self) -> ConservativeReceiverError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConservativeReceiverError
impl Debug for ConservativeReceiverError
Source§impl Display for ConservativeReceiverError
impl Display for ConservativeReceiverError
Source§impl Error for ConservativeReceiverError
impl Error for ConservativeReceiverError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl From<Canceled> for ConservativeReceiverError
impl From<Canceled> for ConservativeReceiverError
Source§fn from(_: Canceled) -> ConservativeReceiverError
fn from(_: Canceled) -> ConservativeReceiverError
Converts to this type from the input type.
impl Copy for ConservativeReceiverError
impl Eq for ConservativeReceiverError
impl StructuralPartialEq for ConservativeReceiverError
Auto Trait Implementations§
impl Freeze for ConservativeReceiverError
impl RefUnwindSafe for ConservativeReceiverError
impl Send for ConservativeReceiverError
impl Sync for ConservativeReceiverError
impl Unpin for ConservativeReceiverError
impl UnwindSafe for ConservativeReceiverError
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