pub enum ReceiveError {
RecvError,
TimeoutError,
}Expand description
Errors that can occur when a ResponseReceiver is
Variants§
RecvError
Error occurring when the channel from RequestSender to RequestReceiver is closed
TimeoutError
Error occurring when the Responder fails to send a response before the timeout
Trait Implementations§
Source§impl Clone for ReceiveError
impl Clone for ReceiveError
Source§fn clone(&self) -> ReceiveError
fn clone(&self) -> ReceiveError
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 moreimpl Copy for ReceiveError
Source§impl Debug for ReceiveError
impl Debug for ReceiveError
Source§impl Display for ReceiveError
impl Display for ReceiveError
Source§impl Error for ReceiveError
impl Error for ReceiveError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<T> From<ReceiveError> for RequestError<T>
impl<T> From<ReceiveError> for RequestError<T>
Source§fn from(err: ReceiveError) -> RequestError<T>
fn from(err: ReceiveError) -> RequestError<T>
Converts to this type from the input type.
Source§impl From<RecvError> for ReceiveError
impl From<RecvError> for ReceiveError
Source§fn from(_err: RecvError) -> ReceiveError
fn from(_err: RecvError) -> ReceiveError
Converts to this type from the input type.
Source§impl PartialEq for ReceiveError
impl PartialEq for ReceiveError
impl StructuralPartialEq for ReceiveError
Auto Trait Implementations§
impl Freeze for ReceiveError
impl RefUnwindSafe for ReceiveError
impl Send for ReceiveError
impl Sync for ReceiveError
impl Unpin for ReceiveError
impl UnsafeUnpin for ReceiveError
impl UnwindSafe for ReceiveError
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