Struct ashpd::desktop::input_capture::Activated
source · pub struct Activated(/* private fields */);
Expand description
Indicates that an input capturing session was activated.
Implementations§
source§impl Activated
impl Activated
sourcepub fn session_handle(&self) -> ObjectPath<'_>
pub fn session_handle(&self) -> ObjectPath<'_>
Session that was activated.
sourcepub fn activation_id(&self) -> Option<u32>
pub fn activation_id(&self) -> Option<u32>
A number that can be used to synchronize with the transport-layer.
sourcepub fn cursor_position(&self) -> Option<(f32, f32)>
pub fn cursor_position(&self) -> Option<(f32, f32)>
The current cursor position in the same coordinate space as the zones.
sourcepub fn barrier_id(&self) -> Option<BarrierID>
pub fn barrier_id(&self) -> Option<BarrierID>
The barrier id of the barrier that triggered
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