[][src]Struct queen::net::KeepAlive

pub struct KeepAlive {
    pub idle: u32,
    pub interval: u32,
    pub count: u32,
    // some fields omitted
}

Fields

idle: u32interval: u32count: u32

Implementations

impl KeepAlive[src]

pub fn new(idle: u32, interval: u32, count: u32) -> Self[src]

pub fn reset(&mut self, now: Instant)[src]

pub fn tick(&mut self, now: Instant) -> Option<(u32, bool)>[src]

Trait Implementations

impl Clone for KeepAlive[src]

impl Debug for KeepAlive[src]

impl Default for KeepAlive[src]

Auto Trait Implementations

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