pub struct SessionRef(pub Ulid);
Tuple Fields§
§0: Ulid
Implementations§
Source§impl SessionRef
impl SessionRef
pub fn now() -> SessionRef
pub fn from_u128(v: u128) -> SessionRef
pub fn as_u128(&self) -> u128
Trait Implementations§
Source§impl Clone for SessionRef
impl Clone for SessionRef
Source§fn clone(&self) -> SessionRef
fn clone(&self) -> SessionRef
Returns a duplicate 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 SessionRef
impl Debug for SessionRef
Source§impl DeepSizeOf for SessionRef
impl DeepSizeOf for SessionRef
Source§fn deep_size_of_children(&self, _: &mut Context) -> usize
fn deep_size_of_children(&self, _: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
Source§impl<'de> Deserialize<'de> for SessionRef
impl<'de> Deserialize<'de> for SessionRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SessionRef
impl Hash for SessionRef
Source§impl Ord for SessionRef
impl Ord for SessionRef
Source§fn cmp(&self, other: &SessionRef) -> Ordering
fn cmp(&self, other: &SessionRef) -> 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 SessionRef
impl PartialEq for SessionRef
Source§impl PartialOrd for SessionRef
impl PartialOrd for SessionRef
Source§impl Serialize for SessionRef
impl Serialize for SessionRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SessionRef
impl Eq for SessionRef
impl StructuralPartialEq for SessionRef
Auto Trait Implementations§
impl Freeze for SessionRef
impl RefUnwindSafe for SessionRef
impl Send for SessionRef
impl Sync for SessionRef
impl Unpin for SessionRef
impl UnwindSafe for SessionRef
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