pub enum ReceiverResult<E, T> {
Continue(T),
Stop,
Delete(E),
}
Variants§
Implementations§
Source§impl<E, T> ReceiverResult<E, T>
impl<E, T> ReceiverResult<E, T>
pub fn is_continue(&self) -> bool
pub fn is_stop(&self) -> bool
pub fn is_delete(&self) -> bool
pub fn unwrap_continue(self) -> T
pub fn unwrap_delete(self) -> E
Trait Implementations§
Source§impl<E: Clone, T: Clone> Clone for ReceiverResult<E, T>
impl<E: Clone, T: Clone> Clone for ReceiverResult<E, T>
Source§fn clone(&self) -> ReceiverResult<E, T>
fn clone(&self) -> ReceiverResult<E, T>
Returns a duplicate 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 moreimpl<E: Copy, T: Copy> Copy for ReceiverResult<E, T>
impl<E: Eq, T: Eq> Eq for ReceiverResult<E, T>
impl<E, T> StructuralPartialEq for ReceiverResult<E, T>
Auto Trait Implementations§
impl<E, T> Freeze for ReceiverResult<E, T>
impl<E, T> RefUnwindSafe for ReceiverResult<E, T>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, T> Send for ReceiverResult<E, T>
impl<E, T> Sync for ReceiverResult<E, T>
impl<E, T> Unpin for ReceiverResult<E, T>
impl<E, T> UnwindSafe for ReceiverResult<E, T>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