[−][src]Struct i3status_rs::widgets::rotatingtext::RotatingTextWidget
Fields
id: usizeinstance: usizerotation_pos: usizemax_width: usizedynamic_width: boolrotation_interval: Durationrotation_speed: Durationnext_rotation: Option<Instant>content: Stringicon: Option<String>state: Statespacing: Spacingrotating: boolinner: I3BlockDataImplementations
impl RotatingTextWidget[src]
pub fn new(
id: usize,
instance: usize,
interval: Duration,
speed: Duration,
max_width: usize,
dynamic_width: bool,
shared_config: SharedConfig
) -> RotatingTextWidget[src]
id: usize,
instance: usize,
interval: Duration,
speed: Duration,
max_width: usize,
dynamic_width: bool,
shared_config: SharedConfig
) -> RotatingTextWidget
pub fn with_icon(self, name: &str) -> Result<Self, Error>[src]
pub fn with_state(self, state: State) -> Self[src]
pub fn with_spacing(self, spacing: Spacing) -> Self[src]
pub fn with_text(self, content: &str) -> Self[src]
pub fn set_state(&mut self, state: State)[src]
pub fn set_icon(&mut self, name: &str) -> Result<(), Error>[src]
pub fn set_text(&mut self, content: String)[src]
pub fn is_empty(&self) -> bool[src]
fn get_rotated_content(&self) -> String[src]
fn update(&mut self)[src]
pub fn next(&mut self) -> Result<(bool, Option<Duration>), Error>[src]
Trait Implementations
impl Clone for RotatingTextWidget[src]
fn clone(&self) -> RotatingTextWidget[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for RotatingTextWidget[src]
impl I3BarWidget for RotatingTextWidget[src]
fn get_data(&self) -> I3BlockData[src]
Auto Trait Implementations
impl !RefUnwindSafe for RotatingTextWidget[src]
impl !Send for RotatingTextWidget[src]
impl !Sync for RotatingTextWidget[src]
impl Unpin for RotatingTextWidget[src]
impl UnwindSafe for RotatingTextWidget[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>,