pub struct Session(/* private fields */);Expand description
Values for Session.
Implementations§
Source§impl Session
impl Session
Sourcepub fn state(&self) -> SessionState
pub fn state(&self) -> SessionState
Performs the state operation.
Sourcepub fn subscribe(
&self,
options: SubscriptionOptions,
) -> CameraResult<FrameReceiverSync>
pub fn subscribe( &self, options: SubscriptionOptions, ) -> CameraResult<FrameReceiverSync>
Performs the subscribe operation.
Sourcepub fn close(&self) -> CameraResult<()>
pub fn close(&self) -> CameraResult<()>
Performs the close operation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
impl Forget for Session
impl Freeze for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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