pub struct Session {
pub session_id: String,
pub shard: (u32, u32),
pub url: String,
pub needs_reconnect: bool,
}Expand description
Session information for websocket connections
Fields§
§session_id: StringSession ID
shard: (u32, u32)Shard information
url: StringGateway URL
needs_reconnect: boolWhether this session needs reconnection
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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