Struct libp2p::swarm::protocols_handler::multi::IntoMultiHandler [−][src]
pub struct IntoMultiHandler<K, H> { /* fields omitted */ }Expand description
A IntoProtocolsHandler for multiple other IntoProtocolsHandlers.
Implementations
pub fn try_from_iter<I>(
iter: I
) -> Result<IntoMultiHandler<K, H>, DuplicateProtonameError> where
I: IntoIterator<Item = (K, H)>, [src]
pub fn try_from_iter<I>(
iter: I
) -> Result<IntoMultiHandler<K, H>, DuplicateProtonameError> where
I: IntoIterator<Item = (K, H)>, [src]Create and populate an IntoMultiHandler from the given iterator.
It is an error for any two protocols handlers to share the same protocol name.
Trait Implementations
impl<K, H> IntoProtocolsHandler for IntoMultiHandler<K, H> where
K: Clone + Eq + Hash + Send + 'static,
H: IntoProtocolsHandler, [src]
impl<K, H> IntoProtocolsHandler for IntoMultiHandler<K, H> where
K: Clone + Eq + Hash + Send + 'static,
H: IntoProtocolsHandler, [src]type Handler = MultiHandler<K, <H as IntoProtocolsHandler>::Handler>
type Handler = MultiHandler<K, <H as IntoProtocolsHandler>::Handler>The protocols handler.
pub fn into_handler(
self,
p: &PeerId,
c: &ConnectedPoint
) -> <IntoMultiHandler<K, H> as IntoProtocolsHandler>::Handler[src]
pub fn into_handler(
self,
p: &PeerId,
c: &ConnectedPoint
) -> <IntoMultiHandler<K, H> as IntoProtocolsHandler>::Handler[src]Builds the protocols handler. Read more
pub fn inbound_protocol(
&self
) -> <<IntoMultiHandler<K, H> as IntoProtocolsHandler>::Handler as ProtocolsHandler>::InboundProtocol[src]
pub fn inbound_protocol(
&self
) -> <<IntoMultiHandler<K, H> as IntoProtocolsHandler>::Handler as ProtocolsHandler>::InboundProtocol[src]Return the handler’s inbound protocol.
Builds an implementation of IntoProtocolsHandler that handles both this protocol and the
other one together. Read more
Creates a builder that will allow creating a NodeHandler that handles this protocol
exclusively. Read more
Auto Trait Implementations
impl<K, H> RefUnwindSafe for IntoMultiHandler<K, H> where
H: RefUnwindSafe,
K: RefUnwindSafe, impl<K, H> Send for IntoMultiHandler<K, H> where
H: Send,
K: Send, impl<K, H> Sync for IntoMultiHandler<K, H> where
H: Sync,
K: Sync, impl<K, H> Unpin for IntoMultiHandler<K, H> where
H: Unpin,
K: Unpin, impl<K, H> UnwindSafe for IntoMultiHandler<K, H> where
H: UnwindSafe,
K: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V