pub enum CmdResp {
None,
RecvFrom(usize, SocketAddr),
Incoming(Handle, SocketAddr),
DataLen(usize),
Timeout(bool),
Cloned(Handle),
SockAddr(SocketAddr),
}
Expand description
The response of fd_cntl
.
Variants§
None
RecvFrom(usize, SocketAddr)
Command RecvFrom
response data.
Incoming(Handle, SocketAddr)
Command Accept
response data.
DataLen(usize)
Command Write
/ SendTo
response data
Timeout(bool)
Cloned(Handle)
Command TryClone
response data.
SockAddr(SocketAddr)
Implementations§
Source§impl CmdResp
impl CmdResp
pub fn try_into_incoming(self) -> Result<(Handle, SocketAddr)>
pub fn try_into_recv_from(self) -> Result<(usize, SocketAddr)>
pub fn try_into_sockaddr(self) -> Result<SocketAddr>
pub fn try_into_datalen(self) -> Result<usize>
pub fn try_into_timeout(self) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdResp
impl RefUnwindSafe for CmdResp
impl Send for CmdResp
impl Sync for CmdResp
impl Unpin for CmdResp
impl UnwindSafe for CmdResp
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