[][src]Struct blip::simulation::Network

pub struct Network { /* fields omitted */ }
This is supported on feature="simulation" only.

A simulated network.

Methods

impl Network[src]

pub async fn block<'_>(&'_ self, dst: SocketAddr)[src]

This is supported on feature="simulation" only.

Block new connections to dst.

pub async fn allow<'_>(&'_ self, dst: SocketAddr)[src]

This is supported on feature="simulation" only.

Allow new connections to dst.

pub async fn bind<'_>(
    &'_ self,
    addr: SocketAddr
) -> Fallible<Receiver<Fallible<Socket>>>
[src]

This is supported on feature="simulation" only.

Bind to a listening socket.

pub async fn connect<'_, U>(&'_ self, uri: U) -> Fallible<Connection> where
    U: TryInto<Uri>,
    U::Error: Error + Send + Sync + 'static, 
[src]

This is supported on feature="simulation" only.

Connect to a listening socket.

Trait Implementations

impl Clone for Network[src]

impl Default for Network[src]

Auto Trait Implementations

impl !RefUnwindSafe for Network

impl Send for Network

impl Sync for Network

impl Unpin for Network

impl !UnwindSafe for Network

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]