Struct longbridge_wscli::WsSession
source · [−]pub struct WsSession {
pub session_id: String,
pub deadline: SystemTime,
}Expand description
The session for the Websocket connection
Fields
session_id: StringSession id
deadline: SystemTimeThe expiration time of the session id.
Implementations
sourceimpl WsSession
impl WsSession
sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Returns true if the session id is expired, otherwise returns `false
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WsSession
impl Send for WsSession
impl Sync for WsSession
impl Unpin for WsSession
impl UnwindSafe for WsSession
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more