pub struct TrayIconId(pub String);
Expand description
An unique id that is associated with a tray icon.
Tuple Fields§
§0: String
Implementations§
Source§impl TrayIconId
impl TrayIconId
Sourcepub fn new<S>(id: S) -> TrayIconId
pub fn new<S>(id: S) -> TrayIconId
Create a new tray icon id.
Trait Implementations§
Source§impl AsRef<str> for TrayIconId
impl AsRef<str> for TrayIconId
Source§impl Clone for TrayIconId
impl Clone for TrayIconId
Source§fn clone(&self) -> TrayIconId
fn clone(&self) -> TrayIconId
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 TrayIconId
impl Debug for TrayIconId
Source§impl Default for TrayIconId
impl Default for TrayIconId
Source§fn default() -> TrayIconId
fn default() -> TrayIconId
Returns the “default value” for a type. Read more
Source§impl<T> From<T> for TrayIconIdwhere
T: ToString,
impl<T> From<T> for TrayIconIdwhere
T: ToString,
Source§fn from(value: T) -> TrayIconId
fn from(value: T) -> TrayIconId
Converts to this type from the input type.
Source§impl FromStr for TrayIconId
impl FromStr for TrayIconId
Source§type Err = Infallible
type Err = Infallible
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<TrayIconId, <TrayIconId as FromStr>::Err>
fn from_str(s: &str) -> Result<TrayIconId, <TrayIconId as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl Hash for TrayIconId
impl Hash for TrayIconId
Source§impl Ord for TrayIconId
impl Ord for TrayIconId
Source§fn cmp(&self, other: &TrayIconId) -> Ordering
fn cmp(&self, other: &TrayIconId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&String> for TrayIconId
impl PartialEq<&String> for TrayIconId
Source§impl PartialEq<&TrayIconId> for TrayIconId
impl PartialEq<&TrayIconId> for TrayIconId
Source§impl PartialEq<&str> for &TrayIconId
impl PartialEq<&str> for &TrayIconId
Source§impl PartialEq<&str> for TrayIconId
impl PartialEq<&str> for TrayIconId
Source§impl PartialEq<String> for &TrayIconId
impl PartialEq<String> for &TrayIconId
Source§impl PartialEq<String> for TrayIconId
impl PartialEq<String> for TrayIconId
Source§impl PartialEq for TrayIconId
impl PartialEq for TrayIconId
Source§impl PartialOrd for TrayIconId
impl PartialOrd for TrayIconId
impl Eq for TrayIconId
impl StructuralPartialEq for TrayIconId
Auto Trait Implementations§
impl Freeze for TrayIconId
impl RefUnwindSafe for TrayIconId
impl Send for TrayIconId
impl Sync for TrayIconId
impl Unpin for TrayIconId
impl UnwindSafe for TrayIconId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.