libp2p_swarm_test

Trait TryIntoOutput

Source
pub trait TryIntoOutput<O>: Sized {
    // Required method
    fn try_into_output(self) -> Result<O, Self>;
}

Required Methods§

Source

fn try_into_output(self) -> Result<O, Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<O> TryIntoOutput<O> for SwarmEvent<O>

Source§

fn try_into_output(self) -> Result<O, Self>

Source§

impl<TBehaviourOutEvent> TryIntoOutput<SwarmEvent<TBehaviourOutEvent>> for SwarmEvent<TBehaviourOutEvent>

Source§

fn try_into_output(self) -> Result<SwarmEvent<TBehaviourOutEvent>, Self>

Implementors§