pub enum Description {
File,
TcpListener,
TcpStream,
UdpSocket,
Timeout,
Poller,
External(usize),
}
Expand description
File description variants are used by the fd_open
function to open file Handle
.
Variants§
File
File description for generating filesystem File
TcpListener
File description for generating TcpListener
TcpStream
File description for generating TcpStream
UdpSocket
File description for generating UdpSocket
Timeout
File description for timeout event
Poller
poller for io readiness events.
External(usize)
Extended file description type defined by the implementation.
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§fn clone(&self) -> Description
fn clone(&self) -> Description
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 Description
impl Debug for Description
Source§impl Hash for Description
impl Hash for Description
Source§impl Ord for Description
impl Ord for Description
Source§fn cmp(&self, other: &Description) -> Ordering
fn cmp(&self, other: &Description) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Description
impl PartialEq for Description
Source§impl PartialOrd for Description
impl PartialOrd for Description
impl Copy for Description
impl Eq for Description
impl StructuralPartialEq for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnwindSafe for Description
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