pub struct IronSession { /* private fields */ }Expand description
Legion Protocol session state
Implementationsยง
Sourceยงimpl IronSession
impl IronSession
Sourcepub fn set_version(&mut self, version: IronVersion)
pub fn set_version(&mut self, version: IronVersion)
Set the negotiated Iron Protocol version (legacy)
Sourcepub fn set_legion_version(&mut self, version: LegionVersion)
pub fn set_legion_version(&mut self, version: LegionVersion)
Set the negotiated Legion Protocol version
Sourcepub fn is_iron_active(&self) -> bool
pub fn is_iron_active(&self) -> bool
Check if Legion/Iron Protocol is active
Sourcepub fn is_legion_active(&self) -> bool
pub fn is_legion_active(&self) -> bool
Check if Legion Protocol specifically is active
Sourcepub fn version(&self) -> Option<IronVersion>
pub fn version(&self) -> Option<IronVersion>
Get the active Iron Protocol version (legacy)
Sourcepub fn legion_version(&self) -> Option<LegionVersion>
pub fn legion_version(&self) -> Option<LegionVersion>
Get the active Legion Protocol version
Sourcepub fn complete_negotiation(&mut self)
pub fn complete_negotiation(&mut self)
Complete Legion/Iron Protocol negotiation
Sourcepub fn is_encrypted_channel(&self, channel: &str) -> bool
pub fn is_encrypted_channel(&self, channel: &str) -> bool
Check if a channel is in our encrypted channels list
Sourcepub fn add_encrypted_channel(&mut self, channel: String)
pub fn add_encrypted_channel(&mut self, channel: String)
Add an encrypted channel to our list
Sourcepub fn remove_encrypted_channel(&mut self, channel: &str)
pub fn remove_encrypted_channel(&mut self, channel: &str)
Remove an encrypted channel from our list
Trait Implementationsยง
Sourceยงimpl Clone for IronSession
impl Clone for IronSession
Sourceยงfn clone(&self) -> IronSession
fn clone(&self) -> IronSession
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 IronSession
impl Debug for IronSession
Auto Trait Implementationsยง
impl Freeze for IronSession
impl RefUnwindSafe for IronSession
impl Send for IronSession
impl Sync for IronSession
impl Unpin for IronSession
impl UnsafeUnpin for IronSession
impl UnwindSafe for IronSession
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