pub enum SessionState {
Starting,
Streaming,
Recovering {
attempt: u32,
},
Stopping,
Stopped,
Failed(Arc<CameraError>),
}Expand description
Possible values for SessionState.
Variants§
Starting
The Starting variant.
Streaming
The Streaming variant.
Recovering
The Recovering struct field.
Stopping
The Stopping variant.
Stopped
The Stopped variant.
Failed(Arc<CameraError>)
The Failed variant.
Implementations§
Source§impl SessionState
impl SessionState
Sourcepub fn is_streaming(&self) -> bool
pub fn is_streaming(&self) -> bool
Performs the is_streaming operation.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Performs the is_terminal operation.
Sourcepub fn error(&self) -> Option<&CameraError>
pub fn error(&self) -> Option<&CameraError>
Performs the error operation.
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§impl Debug for SessionState
impl Debug for SessionState
impl Eq for SessionState
Source§impl PartialEq for SessionState
impl PartialEq for SessionState
impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl !RefUnwindSafe for SessionState
impl !UnwindSafe for SessionState
impl Forget for SessionState
impl Freeze for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
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