Struct ratchet_rs::ProtocolRegistry [−][src]
pub struct ProtocolRegistry { /* fields omitted */ }
Expand description
A subprotocol registry that is used for negotiating a possible subprotocol to use for a connection.
Implementations
pub fn new<I>(i: I) -> Result<ProtocolRegistry, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<Cow<'static, str>>,
pub fn new<I>(i: I) -> Result<ProtocolRegistry, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<Cow<'static, str>>,
Construct a new protocol registry that will allow the provided items.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ProtocolRegistry
impl Send for ProtocolRegistry
impl Sync for ProtocolRegistry
impl Unpin for ProtocolRegistry
impl UnwindSafe for ProtocolRegistry
Blanket Implementations
Mutably borrows from an owned value. Read more