Struct ratchet_rs::ProtocolRegistry
source · [−]pub struct ProtocolRegistry { /* private fields */ }
Expand description
A subprotocol registry that is used for negotiating a possible subprotocol to use for a connection.
Implementations
sourceimpl ProtocolRegistry
impl ProtocolRegistry
sourcepub 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
sourceimpl Clone for ProtocolRegistry
impl Clone for ProtocolRegistry
sourcefn clone(&self) -> ProtocolRegistry
fn clone(&self) -> ProtocolRegistry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProtocolRegistry
impl Debug for ProtocolRegistry
sourceimpl Default for ProtocolRegistry
impl Default for ProtocolRegistry
sourcefn default() -> ProtocolRegistry
fn default() -> ProtocolRegistry
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more