[−][src]Enum xosd_rs::Command
Various types that can be displayed with Xosd::display
You should not construct any of these variants manually. Instead use one of the constructors below.
Variants
Percentage(u16)
Used to display a percentage
String(String)
Used to display text
Slider(u16)
Used to display a slider
Implementations
impl Command
[src]
pub fn percentage(percentage: u16) -> Result<Self>
[src]
Construct the Command::Percentage
variant
Errors
If precentage is greater than 100 or less than 1 return Error::OutOfRangePercentage
pub fn string<S>(string: S) -> Result<Self> where
S: ToString,
[src]
S: ToString,
pub fn slider(slider: u16) -> Result<Self>
[src]
Construct the Command::Slider
variant
Errors
If precentage is greater than 100 or less than 1 return Error::OutOfRangePercentage
Trait Implementations
impl Clone for Command
[src]
impl Debug for Command
[src]
impl Eq for Command
[src]
impl Hash for Command
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Command
[src]
fn cmp(&self, other: &Command) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Command> for Command
[src]
impl PartialOrd<Command> for Command
[src]
fn partial_cmp(&self, other: &Command) -> Option<Ordering>
[src]
fn lt(&self, other: &Command) -> bool
[src]
fn le(&self, other: &Command) -> bool
[src]
fn gt(&self, other: &Command) -> bool
[src]
fn ge(&self, other: &Command) -> bool
[src]
impl StructuralEq for Command
[src]
impl StructuralPartialEq for Command
[src]
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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>,