#[non_exhaustive]pub enum IoOperation {
UdpBind,
UdpSend,
UdpRecv,
TcpAuthConnect,
TcpAuthWrite,
TcpAuthRead,
HostsFetcherHttpGet,
}Expand description
What kind of I/O operation an crate::error::Error::Io variant
was attempting when it failed.
Lets consumers distinguish “couldn’t connect to auth server” from “lost connection to reflector” without parsing the error string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UdpBind
Binding a UDP socket.
UdpSend
Sending a UDP datagram.
UdpRecv
Receiving a UDP datagram.
TcpAuthConnect
Connecting the DPlus auth TCP stream.
TcpAuthWrite
Writing to the DPlus auth TCP stream.
TcpAuthRead
Reading from the DPlus auth TCP stream.
HostsFetcherHttpGet
HTTP GET for the host file fetcher.
Trait Implementations§
Source§impl Clone for IoOperation
impl Clone for IoOperation
Source§fn clone(&self) -> IoOperation
fn clone(&self) -> IoOperation
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 IoOperation
impl Debug for IoOperation
Source§impl Hash for IoOperation
impl Hash for IoOperation
Source§impl PartialEq for IoOperation
impl PartialEq for IoOperation
impl Copy for IoOperation
impl Eq for IoOperation
impl StructuralPartialEq for IoOperation
Auto Trait Implementations§
impl Freeze for IoOperation
impl RefUnwindSafe for IoOperation
impl Send for IoOperation
impl Sync for IoOperation
impl Unpin for IoOperation
impl UnwindSafe for IoOperation
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