pub enum ResultValuePayload {
OkValue(Option<i32>),
ErrValue(Option<i32>),
}Expand description
Result payload: exactly one of ok-value / err-value is set. Each
inner option allows result<_, _> cases whose ok/err type is unit (no
payload).
Variants§
Trait Implementations§
Source§impl Clone for ResultValuePayload
impl Clone for ResultValuePayload
Source§fn clone(&self) -> ResultValuePayload
fn clone(&self) -> ResultValuePayload
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 moreimpl Copy for ResultValuePayload
Auto Trait Implementations§
impl Freeze for ResultValuePayload
impl RefUnwindSafe for ResultValuePayload
impl Send for ResultValuePayload
impl Sync for ResultValuePayload
impl Unpin for ResultValuePayload
impl UnsafeUnpin for ResultValuePayload
impl UnwindSafe for ResultValuePayload
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