#[repr(u32)]pub enum CompetitionError {
OutsideCompetitionTime = 0,
InvalidTradeEvent = 1,
InvalidActionKind = 2,
InvalidTimeRange = 3,
InvalidTimeExtension = 4,
InvalidVolumeThreshold = 5,
InvalidMaxExtension = 6,
CompetitionInProgress = 7,
InvalidVolumeMergeWindow = 8,
}Variants§
OutsideCompetitionTime = 0
InvalidTradeEvent = 1
InvalidActionKind = 2
InvalidTimeRange = 3
InvalidTimeExtension = 4
InvalidVolumeThreshold = 5
InvalidMaxExtension = 6
CompetitionInProgress = 7
InvalidVolumeMergeWindow = 8
Implementations§
Trait Implementations§
Source§impl Clone for CompetitionError
impl Clone for CompetitionError
Source§fn clone(&self) -> CompetitionError
fn clone(&self) -> CompetitionError
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 CompetitionError
impl Debug for CompetitionError
Source§impl Display for CompetitionError
impl Display for CompetitionError
Source§impl From<CompetitionError> for Error
impl From<CompetitionError> for Error
Source§fn from(error_code: CompetitionError) -> Error
fn from(error_code: CompetitionError) -> Error
Converts to this type from the input type.
Source§impl From<CompetitionError> for u32
impl From<CompetitionError> for u32
Source§fn from(e: CompetitionError) -> u32
fn from(e: CompetitionError) -> u32
Converts to this type from the input type.
impl Copy for CompetitionError
Auto Trait Implementations§
impl Freeze for CompetitionError
impl RefUnwindSafe for CompetitionError
impl Send for CompetitionError
impl Sync for CompetitionError
impl Unpin for CompetitionError
impl UnwindSafe for CompetitionError
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