pub struct SessionKey {
pub connection: ConnectionKey,
pub sequence: u64,
}Expand description
协议身份、选项和静态 marker 契约。 连接内不可重用的路由身份。
Fields§
§connection: ConnectionKey路由所属的本地连接。
sequence: u64本连接单调递增序号;根为零。
Trait Implementations§
Source§impl Clone for SessionKey
impl Clone for SessionKey
impl Copy for SessionKey
Source§impl Debug for SessionKey
impl Debug for SessionKey
impl Eq for SessionKey
Source§impl Hash for SessionKey
impl Hash for SessionKey
Source§impl Ord for SessionKey
impl Ord for SessionKey
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 SessionKey
impl PartialEq for SessionKey
Source§impl PartialOrd for SessionKey
impl PartialOrd for SessionKey
impl StructuralPartialEq for SessionKey
Auto Trait Implementations§
impl Freeze for SessionKey
impl RefUnwindSafe for SessionKey
impl Send for SessionKey
impl Sync for SessionKey
impl Unpin for SessionKey
impl UnsafeUnpin for SessionKey
impl UnwindSafe for SessionKey
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