pub struct SessionBuilder { /* private fields */ }Implementations§
Source§impl SessionBuilder
impl SessionBuilder
Sourcepub fn source(self, source: impl FrameSource) -> Self
pub fn source(self, source: impl FrameSource) -> Self
Provide the frame source directly (used by tests and FakeSource).
Mutually exclusive with target.
Sourcepub fn target(self, target: Target) -> Self
pub fn target(self, target: Target) -> Self
Capture a real display or window. Mutually exclusive with source;
macOS-only in this milestone.
Sourcepub fn reattach(self, reattach: bool) -> Self
pub fn reattach(self, reattach: bool) -> Self
If the capture target is lost, keep trying to reattach (default true).
pub async fn build(self) -> Result<Session>
Auto Trait Implementations§
impl !RefUnwindSafe for SessionBuilder
impl !Sync for SessionBuilder
impl !UnwindSafe for SessionBuilder
impl Freeze for SessionBuilder
impl Send for SessionBuilder
impl Unpin for SessionBuilder
impl UnsafeUnpin for SessionBuilder
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