Enum DiscardMode
pub enum DiscardMode {
DiscardReply,
DiscardReplyAndError,
}
Expand description
Variants describing which responses to a request should be discarded.
Variants§
DiscardReply
Only discard the actual reply. Errors go to the main loop.
DiscardReplyAndError
Ignore any kind of response that this request generates.
Trait Implementations§
§impl Clone for DiscardMode
impl Clone for DiscardMode
§fn clone(&self) -> DiscardMode
fn clone(&self) -> DiscardMode
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 more§impl Debug for DiscardMode
impl Debug for DiscardMode
§impl PartialEq for DiscardMode
impl PartialEq for DiscardMode
impl Copy for DiscardMode
impl Eq for DiscardMode
impl StructuralPartialEq for DiscardMode
Auto Trait Implementations§
impl Freeze for DiscardMode
impl RefUnwindSafe for DiscardMode
impl Send for DiscardMode
impl Sync for DiscardMode
impl Unpin for DiscardMode
impl UnwindSafe for DiscardMode
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
)