pub enum NewSetUnsent {
Panic,
Clear,
IntoSet,
}
Expand description
Enum that is checked by the Endpoint
to decide what to do in the event the
user creates a new SetSender
but the endpoint itself has written-but-unsent
data.
Panic
will panic if the event occurs.Clear
will discard any unsent bytes.IntoSet
will transfer the bytes into the first payload inside the set.
Variants§
Trait Implementations§
Source§impl Clone for NewSetUnsent
impl Clone for NewSetUnsent
Source§fn clone(&self) -> NewSetUnsent
fn clone(&self) -> NewSetUnsent
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 moreSource§impl Debug for NewSetUnsent
impl Debug for NewSetUnsent
Source§impl PartialEq for NewSetUnsent
impl PartialEq for NewSetUnsent
impl Copy for NewSetUnsent
impl Eq for NewSetUnsent
impl StructuralPartialEq for NewSetUnsent
Auto Trait Implementations§
impl Freeze for NewSetUnsent
impl RefUnwindSafe for NewSetUnsent
impl Send for NewSetUnsent
impl Sync for NewSetUnsent
impl Unpin for NewSetUnsent
impl UnwindSafe for NewSetUnsent
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