[−][src]Struct i3status_rs::blocks::xrandr::Xrandr
Fields
id: usize
text: TextWidget
update_interval: Duration
monitors: Vec<Monitor>
icons: bool
resolution: bool
step_width: u32
current_idx: usize
Implementations
impl Xrandr
[src]
fn get_active_monitors() -> Result<Option<Vec<String>>, Error>
[src]
fn get_monitor_metrics(
monitor_names: &[String]
) -> Result<Option<Vec<Monitor>>, Error>
[src]
monitor_names: &[String]
) -> Result<Option<Vec<Monitor>>, Error>
fn display(&mut self) -> Result<(), Error>
[src]
Trait Implementations
impl Block for Xrandr
[src]
fn update(&mut self) -> Result<Option<Update>, Error>
[src]
fn view(&self) -> Vec<&dyn I3BarWidget>
[src]
fn click(&mut self, e: &I3BarEvent) -> Result<(), Error>
[src]
fn id(&self) -> usize
[src]
fn signal(&mut self, _signal: i32) -> Result<(), Error>
[src]
impl ConfigBlock for Xrandr
[src]
type Config = XrandrConfig
fn new(
id: usize,
block_config: Self::Config,
shared_config: SharedConfig,
_tx_update_request: Sender<Task>
) -> Result<Self, Error>
[src]
id: usize,
block_config: Self::Config,
shared_config: SharedConfig,
_tx_update_request: Sender<Task>
) -> Result<Self, Error>
fn override_on_click(&mut self) -> Option<&mut Option<String>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Xrandr
[src]
impl !Send for Xrandr
[src]
impl !Sync for Xrandr
[src]
impl Unpin for Xrandr
[src]
impl UnwindSafe for Xrandr
[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, 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>,