pub struct BackendAttempt { /* private fields */ }Expand description
One typed failure captured while evaluating a fallback backend policy.
Implementations§
Source§impl BackendAttempt
impl BackendAttempt
Sourcepub fn new(backend: BackendId, error: Arc<CameraError>) -> Self
pub fn new(backend: BackendId, error: Arc<CameraError>) -> Self
Creates an attempt record from its backend and original shared error.
Sourcepub fn error(&self) -> &CameraError
pub fn error(&self) -> &CameraError
Returns the original structured camera error.
Trait Implementations§
Source§impl Clone for BackendAttempt
impl Clone for BackendAttempt
Source§fn clone(&self) -> BackendAttempt
fn clone(&self) -> BackendAttempt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendAttempt
impl Debug for BackendAttempt
impl Eq for BackendAttempt
Source§impl PartialEq for BackendAttempt
impl PartialEq for BackendAttempt
impl StructuralPartialEq for BackendAttempt
Auto Trait Implementations§
impl !RefUnwindSafe for BackendAttempt
impl !UnwindSafe for BackendAttempt
impl Freeze for BackendAttempt
impl Send for BackendAttempt
impl Sync for BackendAttempt
impl Unpin for BackendAttempt
impl UnsafeUnpin for BackendAttempt
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