Struct netcore::transport::memory::MemoryTransport [−][src]
pub struct MemoryTransport;Expand description
Transport to build in-memory connections
Trait Implementations
Returns the “default value” for a type. Read more
type Output = MemorySocket
type Output = MemorySocket
The result of establishing a connection. Read more
fn listen_on(
&self,
addr: NetworkAddress
) -> Result<(Self::Listener, NetworkAddress), Self::Error>
fn listen_on(
&self,
addr: NetworkAddress
) -> Result<(Self::Listener, NetworkAddress), Self::Error>
Listens on the given NetworkAddress, returning a stream of incoming connections. Read more
Dials the given NetworkAddress, returning a future for a pending outbound connection.
Auto Trait Implementations
impl RefUnwindSafe for MemoryTransport
impl Send for MemoryTransport
impl Sync for MemoryTransport
impl Unpin for MemoryTransport
impl UnwindSafe for MemoryTransport
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self