Struct diplomat_runtime::result::DiplomatResult
source · #[repr(C)]pub struct DiplomatResult<T, E> {
value: DiplomatResultValue<T, E>,
pub is_ok: bool,
}
Expand description
Fields§
§value: DiplomatResultValue<T, E>
§is_ok: bool
Trait Implementations§
source§impl<T, E> Drop for DiplomatResult<T, E>
impl<T, E> Drop for DiplomatResult<T, E>
source§impl<T, E> From<DiplomatResult<T, E>> for Result<T, E>
impl<T, E> From<DiplomatResult<T, E>> for Result<T, E>
source§fn from(result: DiplomatResult<T, E>) -> Result<T, E>
fn from(result: DiplomatResult<T, E>) -> Result<T, E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, E> Freeze for DiplomatResult<T, E>
impl<T, E> RefUnwindSafe for DiplomatResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for DiplomatResult<T, E>
impl<T, E> Sync for DiplomatResult<T, E>
impl<T, E> Unpin for DiplomatResult<T, E>
impl<T, E> UnwindSafe for DiplomatResult<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