pub enum DgramReceiveError {
ConnectionNotStarted,
ConnectionLost(ConnectionError),
OtherError(Status),
}Expand description
Errors that can occur when receiving a datagram.
Variants§
Trait Implementations§
Source§impl Clone for DgramReceiveError
impl Clone for DgramReceiveError
Source§fn clone(&self) -> DgramReceiveError
fn clone(&self) -> DgramReceiveError
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 DgramReceiveError
impl Debug for DgramReceiveError
Source§impl Display for DgramReceiveError
impl Display for DgramReceiveError
Source§impl Error for DgramReceiveError
impl Error for DgramReceiveError
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 From<ConnectionError> for DgramReceiveError
impl From<ConnectionError> for DgramReceiveError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DgramReceiveError
impl RefUnwindSafe for DgramReceiveError
impl Send for DgramReceiveError
impl Sync for DgramReceiveError
impl Unpin for DgramReceiveError
impl UnwindSafe for DgramReceiveError
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