Enum toad_msg::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 more