Enum libp2p_core::connection::ConnectionHandlerEvent [−][src]
Event produced by a handler.
Variants
Require a new outbound substream to be opened with the remote.
Other event.
Implementations
impl<TOutboundOpenInfo, TCustom> ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
Event produced by a handler.
pub fn map_outbound_open_info<F, I>(
self,
map: F
) -> ConnectionHandlerEvent<I, TCustom> where
F: FnOnce(TOutboundOpenInfo) -> I,
[src]
self,
map: F
) -> ConnectionHandlerEvent<I, TCustom> where
F: FnOnce(TOutboundOpenInfo) -> I,
If this is OutboundSubstreamRequest
, maps the content to something else.
pub fn map_custom<F, I>(
self,
map: F
) -> ConnectionHandlerEvent<TOutboundOpenInfo, I> where
F: FnOnce(TCustom) -> I,
[src]
self,
map: F
) -> ConnectionHandlerEvent<TOutboundOpenInfo, I> where
F: FnOnce(TCustom) -> I,
If this is Custom
, maps the content to something else.
Trait Implementations
impl<TOutboundOpenInfo: Clone, TCustom: Clone> Clone for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
fn clone(&self) -> ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<TOutboundOpenInfo: Copy, TCustom: Copy> Copy for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
impl<TOutboundOpenInfo: Debug, TCustom: Debug> Debug for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
impl<TOutboundOpenInfo: Eq, TCustom: Eq> Eq for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
impl<TOutboundOpenInfo: PartialEq, TCustom: PartialEq> PartialEq<ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>> for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
fn eq(&self, other: &ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>) -> bool
[src]
fn ne(&self, other: &ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>) -> bool
[src]
impl<TOutboundOpenInfo, TCustom> StructuralEq for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
impl<TOutboundOpenInfo, TCustom> StructuralPartialEq for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
[src]
Auto Trait Implementations
impl<TOutboundOpenInfo, TCustom> RefUnwindSafe for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom> where
TCustom: RefUnwindSafe,
TOutboundOpenInfo: RefUnwindSafe,
TCustom: RefUnwindSafe,
TOutboundOpenInfo: RefUnwindSafe,
impl<TOutboundOpenInfo, TCustom> Send for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom> where
TCustom: Send,
TOutboundOpenInfo: Send,
TCustom: Send,
TOutboundOpenInfo: Send,
impl<TOutboundOpenInfo, TCustom> Sync for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom> where
TCustom: Sync,
TOutboundOpenInfo: Sync,
TCustom: Sync,
TOutboundOpenInfo: Sync,
impl<TOutboundOpenInfo, TCustom> Unpin for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom> where
TCustom: Unpin,
TOutboundOpenInfo: Unpin,
TCustom: Unpin,
TOutboundOpenInfo: Unpin,
impl<TOutboundOpenInfo, TCustom> UnwindSafe for ConnectionHandlerEvent<TOutboundOpenInfo, TCustom> where
TCustom: UnwindSafe,
TOutboundOpenInfo: UnwindSafe,
TCustom: UnwindSafe,
TOutboundOpenInfo: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,