[−][src]Struct i3status_rs::blocks::memory::Memory
Fields
id: usize
memtype: Memtype
output: (TextWidget, TextWidget)
clickable: bool
format: (FormatTemplate, FormatTemplate)
update_interval: Duration
tx_update_request: Sender<Task>
warning: (f64, f64)
critical: (f64, f64)
Implementations
impl Memory
[src]
fn format_insert_values(&mut self, mem_state: Memstate) -> Result<String, Error>
[src]
pub fn switch(&mut self)
[src]
Trait Implementations
impl Block for Memory
[src]
fn id(&self) -> usize
[src]
fn update(&mut self) -> Result<Option<Update>, Error>
[src]
fn click(&mut self, event: &I3BarEvent) -> Result<(), Error>
[src]
fn view(&self) -> Vec<&dyn I3BarWidget>
[src]
fn signal(&mut self, _signal: i32) -> Result<(), Error>
[src]
impl Clone for Memory
[src]
impl ConfigBlock for Memory
[src]
type Config = MemoryConfig
fn new(
id: usize,
block_config: Self::Config,
shared_config: SharedConfig,
tx: Sender<Task>
) -> Result<Self, Error>
[src]
id: usize,
block_config: Self::Config,
shared_config: SharedConfig,
tx: Sender<Task>
) -> Result<Self, Error>
fn override_on_click(&mut self) -> Option<&mut Option<String>>
[src]
impl Debug for Memory
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Memory
[src]
impl !Send for Memory
[src]
impl !Sync for Memory
[src]
impl Unpin for Memory
[src]
impl UnwindSafe for Memory
[src]
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>,