Struct tsukuyomi::input::upgrade::UpgradeContext [−][src]
pub struct UpgradeContext { /* fields omitted */ }Contextual information used at upgrading to another protocol.
Methods
impl UpgradeContext[src]
impl UpgradeContextpub 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) -> &LocalMapReturns 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 UpgradeContextAuto Trait Implementations
impl Send for UpgradeContext
impl Send for UpgradeContextimpl !Sync for UpgradeContext
impl !Sync for UpgradeContext