pub struct DiagnosedResult<T, E> { /* private fields */ }Implementations§
Source§impl<T, E> DiagnosedResult<T, E>
impl<T, E> DiagnosedResult<T, E>
pub fn success(diagnosis: AuthFlowDiagnosis, value: T) -> Self
pub fn failure(diagnosis: AuthFlowDiagnosis, error: E) -> Self
pub fn diagnosis(&self) -> &AuthFlowDiagnosis
pub fn result(&self) -> &Result<T, E>
pub fn into_result(self) -> Result<T, E>
pub fn into_parts(self) -> (AuthFlowDiagnosis, Result<T, E>)
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for DiagnosedResult<T, E>
impl<T, E> RefUnwindSafe for DiagnosedResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for DiagnosedResult<T, E>
impl<T, E> Sync for DiagnosedResult<T, E>
impl<T, E> Unpin for DiagnosedResult<T, E>
impl<T, E> UnsafeUnpin for DiagnosedResult<T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
impl<T, E> UnwindSafe for DiagnosedResult<T, E>where
T: UnwindSafe,
E: UnwindSafe,
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