Struct crabgrab::capturable_content::CapturableContent
source · pub struct CapturableContent { /* private fields */ }
Expand description
A collection of capturable content (windows, screens)
Implementations§
source§impl CapturableContent
impl CapturableContent
sourcepub async fn new(
filter: CapturableContentFilter
) -> Result<Self, CapturableContentError>
pub async fn new( filter: CapturableContentFilter ) -> Result<Self, CapturableContentError>
Requests capturable content from the OS
Note that the returned capturable content may be stale - for example, a window enumerated in this capturable content may have been closed before it is used to open a stream, and creating a stream for that window will result in an error.
sourcepub fn windows<'a>(&'a self) -> CapturableWindowIterator<'a> ⓘ
pub fn windows<'a>(&'a self) -> CapturableWindowIterator<'a> ⓘ
Get an iterator over the capturable windows
sourcepub fn displays<'a>(&'a self) -> CapturableDisplayIterator<'a> ⓘ
pub fn displays<'a>(&'a self) -> CapturableDisplayIterator<'a> ⓘ
Get an iterator over the capturable displays
Trait Implementations§
impl Send for CapturableContent
impl Sync for CapturableContent
Auto Trait Implementations§
impl Freeze for CapturableContent
impl !RefUnwindSafe for CapturableContent
impl Unpin for CapturableContent
impl !UnwindSafe for CapturableContent
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