Skip to main content

ServerStatistics

Struct ServerStatistics 

Source
pub struct ServerStatistics {
    pub total_bytes_read: i64,
    pub total_bytes_written: i64,
    pub total_file_size: i64,
    pub flist_build_time: Option<i64>,
    pub flist_xfer_time: Option<i64>,
}
Expand description

Statistics from a remote server about how much work it did.

Fields§

§total_bytes_read: i64

Total bytes sent over the network from the client to the server.

§total_bytes_written: i64

Total bytes sent over the network from the server to the client, ignoring any text messages.

§total_file_size: i64

The sum of the size of all file sizes in the transfer. This does not count directories or special files, but does include the size of symlinks.

§flist_build_time: Option<i64>

The number of seconds spent by the server building a file list.

§flist_xfer_time: Option<i64>

The number of seconds the server spent sending the file list to the client.

Trait Implementations§

Source§

impl Debug for ServerStatistics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ServerStatistics

Source§

fn default() -> ServerStatistics

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.