pub struct SessionId(/* private fields */);
Expand description
A randomly generated ID generated by Rojo during a serve session.
If the session ID of the server changes between requests, that indicates that a new server has started up and the session should be terminated.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SessionId
impl<'de> Deserialize<'de> for SessionId
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 PartialEq for SessionId
impl PartialEq for SessionId
impl Copy for SessionId
impl Eq for SessionId
impl StructuralEq for SessionId
impl StructuralPartialEq for SessionId
Auto Trait Implementations§
impl RefUnwindSafe for SessionId
impl Send for SessionId
impl Sync for SessionId
impl Unpin for SessionId
impl UnwindSafe for SessionId
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.