pub struct ListenerId(/* private fields */);Expand description
The index of a listener within one server.
let server = net_io::serve("127.0.0.1:0", |_conn| Ok(()))?;
assert_eq!(server.listeners()[0].id.get(), 0);Implementations§
Trait Implementations§
Source§impl Clone for ListenerId
impl Clone for ListenerId
impl Copy for ListenerId
Source§impl Debug for ListenerId
impl Debug for ListenerId
impl Eq for ListenerId
Source§impl Hash for ListenerId
impl Hash for ListenerId
Source§impl Ord for ListenerId
impl Ord for ListenerId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ListenerId
impl PartialEq for ListenerId
Source§impl PartialOrd for ListenerId
impl PartialOrd for ListenerId
impl StructuralPartialEq for ListenerId
Auto Trait Implementations§
impl Freeze for ListenerId
impl RefUnwindSafe for ListenerId
impl Send for ListenerId
impl Sync for ListenerId
impl Unpin for ListenerId
impl UnsafeUnpin for ListenerId
impl UnwindSafe for ListenerId
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