#[non_exhaustive]#[repr(u8)]pub enum ClockKind {
PriceImpactDistribution = 0,
Borrowing = 1,
Funding = 2,
AdlForLong = 3,
AdlForShort = 4,
}Expand description
The kind of clocks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PriceImpactDistribution = 0
Price Impact Distribution.
Borrowing = 1
Borrowing.
Funding = 2
Funding.
AdlForLong = 3
ADL updated clock for long.
AdlForShort = 4
ADL updated clock for short.
Trait Implementations§
impl Copy for ClockKind
Source§impl<'de> Deserialize<'de> for ClockKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ClockKind
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClockKind
Source§impl IntoEnumIterator for ClockKind
Available on crate feature strum only.
impl IntoEnumIterator for ClockKind
Available on crate feature
strum only.type Iterator = ClockKindIter
fn iter() -> ClockKindIter ⓘ
Source§impl Ord for ClockKind
impl Ord for ClockKind
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 PartialOrd for ClockKind
impl PartialOrd for ClockKind
impl StructuralPartialEq for ClockKind
Auto Trait Implementations§
impl Freeze for ClockKind
impl RefUnwindSafe for ClockKind
impl Send for ClockKind
impl Sync for ClockKind
impl Unpin for ClockKind
impl UnsafeUnpin for ClockKind
impl UnwindSafe for ClockKind
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