[−][src]Struct caspaxos_kv::Net
Fields
address: SocketAddr
timeout: Option<Duration>
Implementations
impl Net
[src]
pub fn new_udp<A: ToSocketAddrs + Display>(
listen_addr: A,
timeout: Duration
) -> Result<(Task<Result<()>>, Net)>
[src]
listen_addr: A,
timeout: Duration
) -> Result<(Task<Result<()>>, Net)>
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]
size: usize,
lossiness: Option<u32>,
timeout: Option<Duration>
) -> (Vec<Net>, SimulatorRunner)
Create a cluster of a certain size with a certain amount of lossiness
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,