pub struct ConnectionMeta {
pub key: u64,
pub id: usize,
}
Expand description
the metadata of a connection
Fields§
§key: u64
The group key. All connections under the same key are considered the same for connection reuse.
id: usize
The unique ID of a connection.
Implementations§
Source§impl ConnectionMeta
impl ConnectionMeta
Sourcepub fn new(key: u64, id: usize) -> Self
pub fn new(key: u64, id: usize) -> Self
Create a new ConnectionMeta
Trait Implementations§
Source§impl Clone for ConnectionMeta
impl Clone for ConnectionMeta
Source§fn clone(&self) -> ConnectionMeta
fn clone(&self) -> ConnectionMeta
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 moreAuto Trait Implementations§
impl Freeze for ConnectionMeta
impl RefUnwindSafe for ConnectionMeta
impl Send for ConnectionMeta
impl Sync for ConnectionMeta
impl Unpin for ConnectionMeta
impl UnwindSafe for ConnectionMeta
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
)