Struct linera_base::identifiers::SessionId
source · pub struct SessionId<A = ()> {
pub application_id: ApplicationId<A>,
pub index: u64,
}Expand description
The identifier of a session.
Fields§
§application_id: ApplicationId<A>The user application that runs the session.
index: u64Unique index set by the runtime.
Implementations§
Trait Implementations§
source§impl<A: Ord> Ord for SessionId<A>
impl<A: Ord> Ord for SessionId<A>
source§impl<A: PartialEq> PartialEq for SessionId<A>
impl<A: PartialEq> PartialEq for SessionId<A>
source§impl<A: PartialOrd> PartialOrd for SessionId<A>
impl<A: PartialOrd> PartialOrd for SessionId<A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<A> Copy for SessionId<A>
impl<A: Eq> Eq for SessionId<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for SessionId<A>where A: RefUnwindSafe,
impl<A> Send for SessionId<A>where A: Send,
impl<A> Sync for SessionId<A>where A: Sync,
impl<A> Unpin for SessionId<A>where A: Unpin,
impl<A> UnwindSafe for SessionId<A>where A: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.