Struct i3status_rs::widget::Widget
source · pub struct Widget {
pub state: State,
/* private fields */
}Fields§
§state: StateImplementations§
source§impl Widget
impl Widget
pub fn new() -> Self
pub fn with_text(self, text: String) -> Self
pub fn with_state(self, state: State) -> Self
pub fn with_format(self, format: Format) -> Self
pub fn set_text(&mut self, text: String)
pub fn set_format(&mut self, format: Format)
pub fn set_values(&mut self, new_values: Values)
pub fn intervals(&self) -> Vec<u64> ⓘ
sourcepub fn get_data(
&self,
shared_config: &SharedConfig,
id: usize
) -> Result<Vec<I3BarBlock>>
pub fn get_data( &self, shared_config: &SharedConfig, id: usize ) -> Result<Vec<I3BarBlock>>
Construct I3BarBlock from this widget
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Widget
impl Send for Widget
impl Sync for Widget
impl Unpin for Widget
impl !UnwindSafe for Widget
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.