Struct libp2p::swarm::protocols_handler::MapInEvent [−][src]
Wrapper around a protocol handler that turns the input event into something else.
Trait Implementations
impl<TProtoHandler, TMap, TNewIn> ProtocolsHandler for MapInEvent<TProtoHandler, TNewIn, TMap> where
TMap: Fn(TNewIn) -> Option<<TProtoHandler as ProtocolsHandler>::InEvent> + Send + 'static,
TNewIn: Send + 'static,
TProtoHandler: ProtocolsHandler,
[src][+]
TMap: Fn(TNewIn) -> Option<<TProtoHandler as ProtocolsHandler>::InEvent> + Send + 'static,
TNewIn: Send + 'static,
TProtoHandler: ProtocolsHandler,
Auto Trait Implementations
impl<TProtoHandler, TNewIn, TMap> RefUnwindSafe for MapInEvent<TProtoHandler, TNewIn, TMap> where
TMap: RefUnwindSafe,
TNewIn: RefUnwindSafe,
TProtoHandler: RefUnwindSafe,
TMap: RefUnwindSafe,
TNewIn: RefUnwindSafe,
TProtoHandler: RefUnwindSafe,
impl<TProtoHandler, TNewIn, TMap> Send for MapInEvent<TProtoHandler, TNewIn, TMap> where
TMap: Send,
TNewIn: Send,
TProtoHandler: Send,
TMap: Send,
TNewIn: Send,
TProtoHandler: Send,
impl<TProtoHandler, TNewIn, TMap> Sync for MapInEvent<TProtoHandler, TNewIn, TMap> where
TMap: Sync,
TNewIn: Sync,
TProtoHandler: Sync,
TMap: Sync,
TNewIn: Sync,
TProtoHandler: Sync,
impl<TProtoHandler, TNewIn, TMap> Unpin for MapInEvent<TProtoHandler, TNewIn, TMap> where
TMap: Unpin,
TNewIn: Unpin,
TProtoHandler: Unpin,
TMap: Unpin,
TNewIn: Unpin,
TProtoHandler: Unpin,
impl<TProtoHandler, TNewIn, TMap> UnwindSafe for MapInEvent<TProtoHandler, TNewIn, TMap> where
TMap: UnwindSafe,
TNewIn: UnwindSafe,
TProtoHandler: UnwindSafe,
TMap: UnwindSafe,
TNewIn: UnwindSafe,
TProtoHandler: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoProtocolsHandler for T where
T: ProtocolsHandler,
[src][+]
T: ProtocolsHandler,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,