[][src]Enum mprober::Mode

pub enum Mode {
    HostName,
    Kernel,
    Uptime {
        monitor: bool,
        second: bool,
    },
    Time {
        monitor: bool,
    },
    CPU {
        monitor: Option<Duration>,
        separate: bool,
        only_information: bool,
    },
    Memory {
        monitor: Option<Duration>,
        unit: Option<ByteUnit>,
    },
    Network {
        monitor: Option<Duration>,
        unit: Option<ByteUnit>,
    },
    Volume {
        monitor: Option<Duration>,
        unit: Option<ByteUnit>,
        only_information: bool,
        mounts: bool,
    },
    Web {
        monitor: Duration,
        port: u16,
        auth_key: Option<String>,
        only_api: bool,
    },
    Benchmark {
        benchmark_config: BenchmarkConfig,
    },
}

Variants

HostName
Kernel
Uptime

Fields of Uptime

monitor: boolsecond: bool
Time

Fields of Time

monitor: bool
CPU

Fields of CPU

monitor: Option<Duration>separate: boolonly_information: bool
Memory

Fields of Memory

monitor: Option<Duration>unit: Option<ByteUnit>
Network

Fields of Network

monitor: Option<Duration>unit: Option<ByteUnit>
Volume

Fields of Volume

monitor: Option<Duration>unit: Option<ByteUnit>only_information: boolmounts: bool
Web

Fields of Web

monitor: Durationport: u16auth_key: Option<String>only_api: bool
Benchmark

Fields of Benchmark

benchmark_config: BenchmarkConfig

Trait Implementations

impl Debug for Mode[src]

Auto Trait Implementations

impl Send for Mode

impl Unpin for Mode

impl Sync for Mode

impl UnwindSafe for Mode

impl RefUnwindSafe for Mode

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,