Struct network::transport::UpgradeContext [−][src]
pub struct UpgradeContext { /* fields omitted */ }Expand description
Common context for performing both inbound and outbound connection upgrades.
Implementations
pub fn new(
noise: NoiseUpgrader,
handshake_version: u8,
supported_protocols: BTreeMap<MessagingProtocolVersion, ProtocolIdSet>,
chain_id: ChainId,
network_id: NetworkId
) -> Self
Auto Trait Implementations
impl RefUnwindSafe for UpgradeContext
impl Send for UpgradeContext
impl Sync for UpgradeContext
impl Unpin for UpgradeContext
impl UnwindSafe for UpgradeContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self