pub enum UdpError {
SendError(Error),
BindError(Error),
ConnectionError(Error),
}Expand description
Custom networking (udp) errors.
Variants§
SendError(Error)
This error is thrown when a message has failed to send.
BindError(Error)
This error is thrown when the [UdpSocket] has failed to bind to the local address.
ConnectionError(Error)
This error is thrown when no remote address could be resolved.
Trait Implementations§
Source§impl Error for UdpError
impl Error for UdpError
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()
Auto Trait Implementations§
impl Freeze for UdpError
impl !RefUnwindSafe for UdpError
impl Send for UdpError
impl Sync for UdpError
impl Unpin for UdpError
impl !UnwindSafe for UdpError
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