pub struct ConnectionId(pub usize);
Available on crate feature
server
only.Expand description
Connection ID.
Tuple Fields§
§0: usize
Trait Implementations§
source§impl Clone for ConnectionId
impl Clone for ConnectionId
source§fn clone(&self) -> ConnectionId
fn clone(&self) -> ConnectionId
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 ConnectionId
impl Debug for ConnectionId
source§impl Default for ConnectionId
impl Default for ConnectionId
source§fn default() -> ConnectionId
fn default() -> ConnectionId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConnectionId
impl<'de> Deserialize<'de> for ConnectionId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<u32> for ConnectionId
impl From<u32> for ConnectionId
source§impl From<usize> for ConnectionId
impl From<usize> for ConnectionId
source§impl Hash for ConnectionId
impl Hash for ConnectionId
source§impl PartialEq for ConnectionId
impl PartialEq for ConnectionId
source§impl Serialize for ConnectionId
impl Serialize for ConnectionId
impl Copy for ConnectionId
impl Eq for ConnectionId
impl StructuralPartialEq for ConnectionId
Auto Trait Implementations§
impl Freeze for ConnectionId
impl RefUnwindSafe for ConnectionId
impl Send for ConnectionId
impl Sync for ConnectionId
impl Unpin for ConnectionId
impl UnwindSafe for ConnectionId
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
)