pub enum SendToError {
NotWriteable,
CreateSock(IpSockCreationError),
Send(IpSockSendError),
Zone(ZonedAddressError),
RemotePortUnset,
RemoteUnexpectedlyMapped,
RemoteUnexpectedlyNonMapped,
SendBufferFull,
InvalidLength,
}Expand description
An error encountered while sending a UDP packet to an alternate address.
Variants§
NotWriteable
The socket is not writeable.
CreateSock(IpSockCreationError)
An error was encountered while trying to create a temporary IP socket to use for the send operation.
Send(IpSockSendError)
An error was encountered while trying to send via the temporary IP socket.
Zone(ZonedAddressError)
There was a problem with the remote address relating to its zone.
RemotePortUnset
Disallow sending packets with a remote port of 0. See
UdpRemotePort::Unset for the rationale.
RemoteUnexpectedlyMapped
The remote address is mapped (i.e. an ipv4-mapped-ipv6 address), but the socket is not dual-stack enabled.
RemoteUnexpectedlyNonMapped
The remote address is non-mapped (i.e not an ipv4-mapped-ipv6 address), but the socket is dual stack enabled and bound to a mapped address.
SendBufferFull
The socket’s send buffer is full.
InvalidLength
Invalid message length.
Trait Implementations§
Source§impl Clone for SendToError
impl Clone for SendToError
Source§fn clone(&self) -> SendToError
fn clone(&self) -> SendToError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SendToError
impl Debug for SendToError
Source§impl Display for SendToError
impl Display for SendToError
Source§impl Error for SendToError
impl Error for SendToError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<IpSockCreationError> for SendToError
impl From<IpSockCreationError> for SendToError
Source§fn from(source: IpSockCreationError) -> Self
fn from(source: IpSockCreationError) -> Self
Source§impl From<IpSockSendError> for SendToError
impl From<IpSockSendError> for SendToError
Source§fn from(source: IpSockSendError) -> Self
fn from(source: IpSockSendError) -> Self
Source§impl From<ZonedAddressError> for SendToError
impl From<ZonedAddressError> for SendToError
Source§fn from(source: ZonedAddressError) -> Self
fn from(source: ZonedAddressError) -> Self
Source§impl PartialEq for SendToError
impl PartialEq for SendToError
impl Copy for SendToError
impl Eq for SendToError
impl StructuralPartialEq for SendToError
Auto Trait Implementations§
impl Freeze for SendToError
impl RefUnwindSafe for SendToError
impl Send for SendToError
impl Sync for SendToError
impl Unpin for SendToError
impl UnsafeUnpin for SendToError
impl UnwindSafe for SendToError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more