pub struct Storage { /* private fields */ }
Expand description
Displays information about storage for a given mountpoint.
Trait Implementations§
Source§impl PanelConfig for Storage
impl PanelConfig for Storage
Source§fn parse(
name: &'static str,
table: &mut HashMap<String, Value>,
_global: &Config,
) -> Result<Self>
fn parse( name: &'static str, table: &mut HashMap<String, Value>, _global: &Config, ) -> Result<Self>
interval
: how long to wait in seconds between each check- type: u64
- default: 10
path
: the file path to check- type: String
- default:
/proc/meminfo
- If you’re considering changing this, you might want to use a different panel likeInotify
format
: the format string- type: String
- default:
RAM: %percentage_used%
- formatting options:
%{gb,mb}_{total,used,free}%, %percentage_{used,free}%
attrs
: A string specifying the attrs for the panel. SeeAttrs::parse
for details.highlight
: A string specifying the highlight for the panel. SeeHighlight::parse
for details.- See
PanelCommon::parse_common
.
Source§fn props(&self) -> (&'static str, bool)
fn props(&self) -> (&'static str, bool)
Returns the name of the panel. If the panel supports events, each
instance must return a unique name.
Source§fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = PanelRunResult> + 'async_trait>>where
Self: 'async_trait,
fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = PanelRunResult> + 'async_trait>>where
Self: 'async_trait,
Performs any necessary setup, then returns a
PanelStream
representing the provided PanelConfig
. Read moreAuto Trait Implementations§
impl Freeze for Storage
impl !RefUnwindSafe for Storage
impl !Send for Storage
impl !Sync for Storage
impl Unpin for Storage
impl !UnwindSafe for Storage
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