Struct slimproto::status::StatusData [−][src]
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]
&'a mut self,
output_buffer_fullness: u32
) -> &'a mut Self
pub fn set_elapsed_seconds<'a>(
&'a mut self,
elapsed_seconds: u32
) -> &'a mut Self
[src]
&'a mut self,
elapsed_seconds: u32
) -> &'a mut Self
pub fn set_elapsed_milli_seconds<'a>(
&'a mut self,
elapsed_milli_seconds: u32
) -> &'a mut Self
[src]
&'a mut self,
elapsed_milli_seconds: u32
) -> &'a mut Self
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]
fn clone(&self) -> StatusData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StatusData
[src]
impl Default for StatusData
[src]
fn default() -> StatusData
[src]
Auto Trait Implementations
impl RefUnwindSafe for StatusData
impl Send for StatusData
impl Sync for StatusData
impl Unpin for StatusData
impl UnwindSafe for StatusData
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,