pub struct MockTrayIconState {
pub id: TrayIconId,
pub tooltip: String,
pub menu: Option<MenuId>,
pub visible: bool,
pub icon_bytes: Option<Vec<u8>>,
}Expand description
Mock state representation of an active system tray icon.
Fields§
§id: TrayIconId§tooltip: String§visible: bool§icon_bytes: Option<Vec<u8>>Trait Implementations§
Source§impl Clone for MockTrayIconState
impl Clone for MockTrayIconState
Source§impl Debug for MockTrayIconState
impl Debug for MockTrayIconState
impl Eq for MockTrayIconState
Source§impl From<&TrayIconSpec> for MockTrayIconState
impl From<&TrayIconSpec> for MockTrayIconState
Source§fn from(spec: &TrayIconSpec) -> Self
fn from(spec: &TrayIconSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MockTrayIconState
impl PartialEq for MockTrayIconState
impl StructuralPartialEq for MockTrayIconState
Auto Trait Implementations§
impl Forget for MockTrayIconState
impl Freeze for MockTrayIconState
impl Move for MockTrayIconState
impl RefUnwindSafe for MockTrayIconState
impl Send for MockTrayIconStatewhere
RawVecInner: Send,
impl Sync for MockTrayIconStatewhere
RawVecInner: Sync,
impl Unpin for MockTrayIconState
impl UnsafeUnpin for MockTrayIconState
impl UnwindSafe for MockTrayIconStatewhere
RawVecInner: UnwindSafe,
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