Struct slimproto::status::StatusData[][src]

pub struct StatusData { /* fields omitted */ }

Implementations

impl StatusData[src]

pub fn new(buffer_size: u32, output_buffer_size: u32) -> Self[src]

pub fn set_crlf<'a>(&'a mut self, crlf: u8) -> &'a mut Self[src]

pub fn set_fullness<'a>(&'a mut self, fullness: u32) -> &'a mut Self[src]

pub fn add_bytes_received<'a>(&'a mut self, bytes_received: u64) -> &'a mut Self[src]

pub fn set_jiffies<'a>(&'a mut self, jiffies: Duration) -> &'a mut Self[src]

pub fn set_output_buffer_fullness<'a>(
    &'a mut self,
    output_buffer_fullness: u32
) -> &'a mut Self
[src]

pub fn set_elapsed_seconds<'a>(
    &'a mut self,
    elapsed_seconds: u32
) -> &'a mut Self
[src]

pub fn set_elapsed_milli_seconds<'a>(
    &'a mut self,
    elapsed_milli_seconds: u32
) -> &'a mut Self
[src]

pub fn set_timestamp<'a>(&'a mut self, timestamp: Duration) -> &'a mut Self[src]

pub fn set_error_code<'a>(&'a mut self, error_code: u16) -> &'a mut Self[src]

pub fn make_status_message(&self, msgtype: StatusCode) -> ClientMessage[src]

Trait Implementations

impl Clone for StatusData[src]

impl Debug for StatusData[src]

impl Default for StatusData[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.