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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 (const: unstable) · 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 for SetOptionError<OV, OVs>
impl<OV: PartialEq, OVs: PartialEq> PartialEq for SetOptionError<OV, OVs>
Source§fn eq(&self, other: &SetOptionError<OV, OVs>) -> bool
fn eq(&self, other: &SetOptionError<OV, OVs>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<OV: PartialOrd, OVs: PartialOrd> PartialOrd for SetOptionError<OV, OVs>
impl<OV: PartialOrd, OVs: PartialOrd> PartialOrd for SetOptionError<OV, OVs>
impl<OV: Copy, OVs: Copy> Copy for SetOptionError<OV, OVs>
impl<OV: Eq, OVs: Eq> Eq for SetOptionError<OV, OVs>
impl<OV, OVs> StructuralPartialEq for SetOptionError<OV, OVs>
Auto Trait Implementations§
impl<OV, OVs> Freeze for SetOptionError<OV, OVs>
impl<OV, OVs> RefUnwindSafe for SetOptionError<OV, OVs>where
OV: RefUnwindSafe,
OVs: RefUnwindSafe,
impl<OV, OVs> Send for SetOptionError<OV, OVs>
impl<OV, OVs> Sync for SetOptionError<OV, OVs>
impl<OV, OVs> Unpin for SetOptionError<OV, OVs>
impl<OV, OVs> UnsafeUnpin for SetOptionError<OV, OVs>where
OV: UnsafeUnpin,
OVs: UnsafeUnpin,
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