Struct ashpd::desktop::global_shortcuts::Activated
source · pub struct Activated(/* private fields */);
Expand description
Notifies about a shortcut becoming active.
Implementations§
source§impl Activated
impl Activated
sourcepub fn session_handle(&self) -> ObjectPath<'_>
pub fn session_handle(&self) -> ObjectPath<'_>
Session that requested the shortcut.
sourcepub fn shortcut_id(&self) -> &str
pub fn shortcut_id(&self) -> &str
The application-provided ID for the shortcut.
sourcepub fn timestamp(&self) -> Duration
pub fn timestamp(&self) -> Duration
The timestamp, as seconds and microseconds since the Unix epoch.
sourcepub fn options(&self) -> &HashMap<String, OwnedValue>
pub fn options(&self) -> &HashMap<String, OwnedValue>
Optional information
Trait Implementations§
source§impl<'de> Deserialize<'de> for Activated
impl<'de> Deserialize<'de> for Activated
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
Auto Trait Implementations§
impl Freeze for Activated
impl RefUnwindSafe for Activated
impl Send for Activated
impl Sync for Activated
impl Unpin for Activated
impl UnwindSafe for Activated
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<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more