[]Struct sc_network::config::ExtTransport

pub struct ExtTransport { /* fields omitted */ }

Implementation of Transport whose implementation is handled by some FFI.


impl ExtTransport

pub fn new(transport: Transport) -> ExtTransport

Creates a new ExtTransport that uses the given external Transport.

Trait Implementations

impl Clone for ExtTransport

impl Debug for ExtTransport

impl Transport for ExtTransport

type Output = Connection

The result of a connection setup process, including protocol upgrades. Read more

type Error = JsErr

An error that occurred during connection setup.

type Listener = Listen

A stream of Outputs for inbound connections. Read more

type ListenerUpgrade = Ready<Result<<ExtTransport as Transport>::Output, <ExtTransport as Transport>::Error>>

A pending Output for an inbound connection, obtained from the Listener stream. Read more

type Dial = Dial

A pending Output for an outbound connection, obtained from dialing. Read more

Auto Trait Implementations

impl RefUnwindSafe for ExtTransport[src]

impl Send for ExtTransport[src]

impl Sync for ExtTransport[src]

impl Unpin for ExtTransport[src]

impl UnwindSafe for ExtTransport[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> CheckedConversion for T[src]

impl<T> DynClone for T where
    T: Clone

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<TTransport> TransportExt for TTransport where
    TTransport: Transport, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]