Struct portal_screencast::ScreenCast [−][src]
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]
self,
parent_window: Option<&str>
) -> Result<ActiveScreenCast, PortalError>
Try to start the screen cast. This will prompt the user to select a source to share.
Auto Trait Implementations
impl !RefUnwindSafe for ScreenCast
impl Send for ScreenCast
impl !Sync for ScreenCast
impl Unpin for ScreenCast
impl !UnwindSafe for ScreenCast
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,