Struct libp2p_core::transport::memory::MemoryTransport [−][src]
pub struct MemoryTransport;
Transport that supports /memory/N
multiaddresses.
Trait Implementations
impl Clone for MemoryTransport
[src]
impl Clone for MemoryTransport
[src]fn clone(&self) -> MemoryTransport
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for MemoryTransport
[src]
impl Default for MemoryTransport
[src]fn default() -> MemoryTransport
[src]
impl Transport for MemoryTransport
[src]
impl Transport for MemoryTransport
[src]type Output = Channel<Vec<u8>>
The result of a connection setup process, including protocol upgrades. Read more
type Error = MemoryTransportError
An error that occurred during connection setup.
type Listener = Listener
type ListenerUpgrade = Ready<Result<Self::Output, Self::Error>>
type Dial = DialFuture
fn listen_on(
self,
addr: Multiaddr
) -> Result<Self::Listener, TransportError<Self::Error>>
[src]
self,
addr: Multiaddr
) -> Result<Self::Listener, TransportError<Self::Error>>
fn dial(
self,
addr: Multiaddr
) -> Result<DialFuture, TransportError<Self::Error>>
[src]
self,
addr: Multiaddr
) -> Result<DialFuture, TransportError<Self::Error>>
fn address_translation(
&self,
_server: &Multiaddr,
_observed: &Multiaddr
) -> Option<Multiaddr>
[src]
&self,
_server: &Multiaddr,
_observed: &Multiaddr
) -> Option<Multiaddr>
fn boxed(self) -> Boxed<Self::Output> where
Self: Transport + Sized + Clone + Send + Sync + 'static,
Self::Dial: Send + 'static,
Self::Listener: Send + 'static,
Self::ListenerUpgrade: Send + 'static,
Self::Error: Send + Sync,
[src]
Self: Transport + Sized + Clone + Send + Sync + 'static,
Self::Dial: Send + 'static,
Self::Listener: Send + 'static,
Self::ListenerUpgrade: Send + 'static,
Self::Error: Send + Sync,
fn map<F, O>(self, f: F) -> Map<Self, F> where
Self: Sized,
F: FnOnce(Self::Output, ConnectedPoint) -> O + Clone,
[src]
Self: Sized,
F: FnOnce(Self::Output, ConnectedPoint) -> O + Clone,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F> where
Self: Sized,
F: FnOnce(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: FnOnce(Self::Error) -> E + Clone,
fn or_transport<U>(self, other: U) -> OrTransport<Self, U> where
Self: Sized,
U: Transport,
<U as Transport>::Error: 'static,
[src]
Self: Sized,
U: Transport,
<U as Transport>::Error: 'static,
fn and_then<C, F, O>(self, f: C) -> AndThen<Self, C> where
Self: Sized,
C: FnOnce(Self::Output, ConnectedPoint) -> F + Clone,
F: TryFuture<Ok = O>,
<F as TryFuture>::Error: Error + 'static,
[src]
Self: Sized,
C: FnOnce(Self::Output, ConnectedPoint) -> F + Clone,
F: TryFuture<Ok = O>,
<F as TryFuture>::Error: Error + 'static,
fn upgrade(self, version: Version) -> Builder<Self> where
Self: Sized,
Self::Error: 'static,
[src]
Self: Sized,
Self::Error: 'static,