Struct wasm_tokio::cm::ResultEncoder
source · pub struct ResultEncoder<O, E> {
pub ok: O,
pub err: E,
}
Fields§
§ok: O
§err: E
Trait Implementations§
source§impl<O: Clone, E: Clone> Clone for ResultEncoder<O, E>
impl<O: Clone, E: Clone> Clone for ResultEncoder<O, E>
source§fn clone(&self) -> ResultEncoder<O, E>
fn clone(&self) -> ResultEncoder<O, E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<O: Default, E: Default> Default for ResultEncoder<O, E>
impl<O: Default, E: Default> Default for ResultEncoder<O, E>
source§fn default() -> ResultEncoder<O, E>
fn default() -> ResultEncoder<O, E>
Returns the “default value” for a type. Read more
source§impl<'a, CO, O, CE, E> Encoder<&'a Result<O, E>> for ResultEncoder<CO, CE>
impl<'a, CO, O, CE, E> Encoder<&'a Result<O, E>> for ResultEncoder<CO, CE>
source§impl<CO, O, CE, E> Encoder<Result<O, E>> for ResultEncoder<CO, CE>
impl<CO, O, CE, E> Encoder<Result<O, E>> for ResultEncoder<CO, CE>
impl<O: Copy, E: Copy> Copy for ResultEncoder<O, E>
impl<O: Eq, E: Eq> Eq for ResultEncoder<O, E>
impl<O, E> StructuralPartialEq for ResultEncoder<O, E>
Auto Trait Implementations§
impl<O, E> Freeze for ResultEncoder<O, E>
impl<O, E> RefUnwindSafe for ResultEncoder<O, E>where
O: RefUnwindSafe,
E: RefUnwindSafe,
impl<O, E> Send for ResultEncoder<O, E>
impl<O, E> Sync for ResultEncoder<O, E>
impl<O, E> Unpin for ResultEncoder<O, E>
impl<O, E> UnwindSafe for ResultEncoder<O, E>where
O: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)