[][src]Struct caspaxos_kv::Net

pub struct Net {
    pub address: SocketAddr,
    pub timeout: Option<Duration>,
    // some fields omitted
}

Fields

address: SocketAddrtimeout: Option<Duration>

Implementations

impl Net[src]

pub fn new_udp<A: ToSocketAddrs + Display>(
    listen_addr: A,
    timeout: Duration
) -> Result<(Task<Result<()>>, Net)>
[src]

Create a new net that listens at a particular address. Spawns a task to feed incoming messages.

pub fn simulation(
    size: usize,
    lossiness: Option<u32>,
    timeout: Option<Duration>
) -> (Vec<Net>, SimulatorRunner)
[src]

Create a cluster of a certain size with a certain amount of lossiness

Trait Implementations

impl Debug for Net[src]

Auto Trait Implementations

impl !RefUnwindSafe for Net

impl Send for Net

impl Sync for Net

impl Unpin for Net

impl !UnwindSafe for Net

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, U> Into<U> for T where
    U: From<T>, 
[src]

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>,