pub struct ConnectionHandle(pub usize);
Expand description
Internal identifier for a Connection
currently associated with an endpoint
Tuple Fields§
§0: usize
Trait Implementations§
Source§impl Clone for ConnectionHandle
impl Clone for ConnectionHandle
Source§fn clone(&self) -> ConnectionHandle
fn clone(&self) -> ConnectionHandle
Returns a copy 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 ConnectionHandle
impl Debug for ConnectionHandle
Source§impl From<ConnectionHandle> for usize
impl From<ConnectionHandle> for usize
Source§fn from(x: ConnectionHandle) -> Self
fn from(x: ConnectionHandle) -> Self
Converts to this type from the input type.
Source§impl Hash for ConnectionHandle
impl Hash for ConnectionHandle
Source§impl Index<ConnectionHandle> for Slab<ConnectionMeta>
impl Index<ConnectionHandle> for Slab<ConnectionMeta>
Source§impl IndexMut<ConnectionHandle> for Slab<ConnectionMeta>
impl IndexMut<ConnectionHandle> for Slab<ConnectionMeta>
Source§fn index_mut(&mut self, ch: ConnectionHandle) -> &mut ConnectionMeta
fn index_mut(&mut self, ch: ConnectionHandle) -> &mut ConnectionMeta
Performs the mutable indexing (
container[index]
) operation. Read moreSource§impl Ord for ConnectionHandle
impl Ord for ConnectionHandle
Source§fn cmp(&self, other: &ConnectionHandle) -> Ordering
fn cmp(&self, other: &ConnectionHandle) -> 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 ConnectionHandle
impl PartialEq for ConnectionHandle
Source§impl PartialOrd for ConnectionHandle
impl PartialOrd for ConnectionHandle
impl Copy for ConnectionHandle
impl Eq for ConnectionHandle
impl StructuralPartialEq for ConnectionHandle
Auto Trait Implementations§
impl Freeze for ConnectionHandle
impl RefUnwindSafe for ConnectionHandle
impl Send for ConnectionHandle
impl Sync for ConnectionHandle
impl Unpin for ConnectionHandle
impl UnwindSafe for ConnectionHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)