Struct routeros_dhcp_leases_webui::mikrotik_api::resource::Resource
source · pub struct Resource {Show 18 fields
pub architecture_name: String,
pub board_name: String,
pub cpu: String,
pub platform: String,
pub factory_software: String,
pub version: String,
pub bad_blocks: f64,
pub cpu_count: u8,
pub cpu_frequency: u64,
pub cpu_load: u16,
pub build_time: NaiveDateTime,
pub uptime: Duration,
pub total_hdd_space: u64,
pub free_hdd_space: u64,
pub total_memory: u64,
pub free_memory: u64,
pub write_sect_since_reboot: Option<u64>,
pub write_sect_total: Option<u64>,
}
Fields§
§architecture_name: String
§board_name: String
§cpu: String
§platform: String
§factory_software: String
§version: String
§bad_blocks: f64
§cpu_count: u8
§cpu_frequency: u64
§cpu_load: u16
Percentage of whole router
build_time: NaiveDateTime
§uptime: Duration
§total_hdd_space: u64
Bytes
free_hdd_space: u64
Bytes
total_memory: u64
Bytes
free_memory: u64
Bytes
write_sect_since_reboot: Option<u64>
§write_sect_total: Option<u64>
Trait Implementations§
source§impl AsMetrics for Resource
impl AsMetrics for Resource
fn register_as_metrics(self: Box<Self>, registry: &mut Registry)
source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more