Struct tsukuyomi::input::upgrade::UpgradeContext [−][src]
pub struct UpgradeContext { /* fields omitted */ }
Contextual information used at upgrading to another protocol.
Methods
impl UpgradeContext
[src]
impl UpgradeContext
pub fn request(&self) -> &Request<()>
[src]
pub fn request(&self) -> &Request<()>
Returns the reference to a Request<()>
used during the handshake.
pub fn locals(&self) -> &LocalMap
[src]
pub fn locals(&self) -> &LocalMap
Returns the reference to a LocalMap
used during the handshake.
pub fn get<T>(&self) -> Option<&T> where
T: Send + Sync + 'static,
[src]
pub fn get<T>(&self) -> Option<&T> where
T: Send + Sync + 'static,
Returns the reference to a value of T
registered in the global storage.
Trait Implementations
impl Debug for UpgradeContext
[src]
impl Debug for UpgradeContext
Auto Trait Implementations
impl Send for UpgradeContext
impl Send for UpgradeContext
impl !Sync for UpgradeContext
impl !Sync for UpgradeContext