Struct portal_screencast::ScreenCast[][src]

pub struct ScreenCast { /* fields omitted */ }

An un-opened screencast session. This can be queried fro the supported capture source types, and used to configure which source types to prompt for. Each ScreenCast can be mde active once by calling start().

Implementations

impl ScreenCast[src]

pub fn new() -> Result<Self, PortalError>[src]

Create a new ScreenCast Session

Connects to D-Bus and initaialises a ScreenCast object.

pub fn source_types(&self) -> Result<SourceType, PortalError>[src]

Get the supported source types for this connection

pub fn set_source_types(&mut self, types: SourceType)[src]

Set the source types to capture. This should be a subset of those from source_types().

pub fn enable_multiple(&mut self)[src]

Enable multi-stream selection. This allows the user to choose more than one thing to share. Each will be a separate item in the ActiveScreenCast::streams() iterator.

pub fn start(
    self,
    parent_window: Option<&str>
) -> Result<ActiveScreenCast, PortalError>
[src]

Try to start the screen cast. This will prompt the user to select a source to share.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,