Struct ashpd::desktop::screencast::Stream
source · pub struct Stream(/* private fields */);
Expand description
A PipeWire stream.
Implementations§
source§impl Stream
impl Stream
sourcepub fn pipe_wire_node_id(&self) -> u32
pub fn pipe_wire_node_id(&self) -> u32
The PipeWire stream Node ID
sourcepub fn position(&self) -> Option<(i32, i32)>
pub fn position(&self) -> Option<(i32, i32)>
A tuple consisting of the position (x, y) in the compositor coordinate space.
Note the position may not be equivalent to a position in a pixel coordinate space. Only available for monitor streams.
sourcepub fn size(&self) -> Option<(i32, i32)>
pub fn size(&self) -> Option<(i32, i32)>
A tuple consisting of (width, height). The size represents the size of the stream as it is displayed in the compositor coordinate space.
Note the size may not be equivalent to a size in a pixel coordinate space. The size may differ from the size of the stream.
sourcepub fn source_type(&self) -> Option<SourceType>
pub fn source_type(&self) -> Option<SourceType>
The source type of the stream.
sourcepub fn mapping_id(&self) -> Option<&str>
pub fn mapping_id(&self) -> Option<&str>
The stream mapping id.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
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 Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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