Struct ashpd::desktop::inhibit::InhibitState
source · pub struct InhibitState(/* private fields */);
Expand description
A response received when the state_changed
signal is received.
Implementations§
source§impl InhibitState
impl InhibitState
sourcepub fn session_handle(&self) -> ObjectPath<'_>
pub fn session_handle(&self) -> ObjectPath<'_>
The session triggered the state change
sourcepub fn screensaver_active(&self) -> bool
pub fn screensaver_active(&self) -> bool
Whether screensaver is active or not.
sourcepub fn session_state(&self) -> SessionState
pub fn session_state(&self) -> SessionState
The session state.
Trait Implementations§
source§impl Debug for InhibitState
impl Debug for InhibitState
source§impl<'de> Deserialize<'de> for InhibitState
impl<'de> Deserialize<'de> for InhibitState
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 InhibitState
impl RefUnwindSafe for InhibitState
impl Send for InhibitState
impl Sync for InhibitState
impl Unpin for InhibitState
impl UnwindSafe for InhibitState
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