Enum i3status_rs::blocks::sound::DeviceKind
source · pub enum DeviceKind {
Sink,
Source,
}
Variants§
Implementations§
source§impl DeviceKind
impl DeviceKind
pub fn default_name(self) -> Cow<'static, str>
Trait Implementations§
source§impl Clone for DeviceKind
impl Clone for DeviceKind
source§fn clone(&self) -> DeviceKind
fn clone(&self) -> DeviceKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeviceKind
impl Debug for DeviceKind
source§impl<'de> Deserialize<'de> for DeviceKind
impl<'de> Deserialize<'de> for DeviceKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for DeviceKind
impl Hash for DeviceKind
source§impl PartialEq for DeviceKind
impl PartialEq for DeviceKind
source§fn eq(&self, other: &DeviceKind) -> bool
fn eq(&self, other: &DeviceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeviceKind
impl Eq for DeviceKind
impl StructuralPartialEq for DeviceKind
Auto Trait Implementations§
impl Freeze for DeviceKind
impl RefUnwindSafe for DeviceKind
impl Send for DeviceKind
impl Sync for DeviceKind
impl Unpin for DeviceKind
impl UnwindSafe for DeviceKind
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.