Enum toad_msg::SetOptionError
source · pub enum SetOptionError<OV, OVs> {
RepeatedTooManyTimes(OV),
TooManyOptions(OptNumber, OVs),
}
Expand description
An error occurred during a call to Message::set
Variants§
Trait Implementations§
source§impl<OV: Clone, OVs: Clone> Clone for SetOptionError<OV, OVs>
impl<OV: Clone, OVs: Clone> Clone for SetOptionError<OV, OVs>
source§fn clone(&self) -> SetOptionError<OV, OVs>
fn clone(&self) -> SetOptionError<OV, OVs>
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<OV: Ord, OVs: Ord> Ord for SetOptionError<OV, OVs>
impl<OV: Ord, OVs: Ord> Ord for SetOptionError<OV, OVs>
source§fn cmp(&self, other: &SetOptionError<OV, OVs>) -> Ordering
fn cmp(&self, other: &SetOptionError<OV, OVs>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<OV: PartialEq, OVs: PartialEq> PartialEq<SetOptionError<OV, OVs>> for SetOptionError<OV, OVs>
impl<OV: PartialEq, OVs: PartialEq> PartialEq<SetOptionError<OV, OVs>> for SetOptionError<OV, OVs>
source§fn eq(&self, other: &SetOptionError<OV, OVs>) -> bool
fn eq(&self, other: &SetOptionError<OV, OVs>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<OV: PartialOrd, OVs: PartialOrd> PartialOrd<SetOptionError<OV, OVs>> for SetOptionError<OV, OVs>
impl<OV: PartialOrd, OVs: PartialOrd> PartialOrd<SetOptionError<OV, OVs>> for SetOptionError<OV, OVs>
source§fn partial_cmp(&self, other: &SetOptionError<OV, OVs>) -> Option<Ordering>
fn partial_cmp(&self, other: &SetOptionError<OV, OVs>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<OV: Copy, OVs: Copy> Copy for SetOptionError<OV, OVs>
impl<OV: Eq, OVs: Eq> Eq for SetOptionError<OV, OVs>
impl<OV, OVs> StructuralEq for SetOptionError<OV, OVs>
impl<OV, OVs> StructuralPartialEq for SetOptionError<OV, OVs>
Auto Trait Implementations§
impl<OV, OVs> RefUnwindSafe for SetOptionError<OV, OVs>where OV: RefUnwindSafe, OVs: RefUnwindSafe,
impl<OV, OVs> Send for SetOptionError<OV, OVs>where OV: Send, OVs: Send,
impl<OV, OVs> Sync for SetOptionError<OV, OVs>where OV: Sync, OVs: Sync,
impl<OV, OVs> Unpin for SetOptionError<OV, OVs>where OV: Unpin, OVs: Unpin,
impl<OV, OVs> UnwindSafe for SetOptionError<OV, OVs>where OV: UnwindSafe, OVs: 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