#[repr(u8)]pub enum LegStatus {
Computed = 0,
NoInput = 1,
Crossed = 2,
StaleQuote = 3,
Stale = 4,
SolverError = 5,
}Expand description
The outcome recorded per leg after a local fill, surfaced later as the
computed-Greeks / stale badge (docs/01-domain-model.md §7).
Only the observable input conditions are distinguished: a leg is never shown
a stale computed number, so every non-Computed status
clears the leg’s local analytics to None.
Variants§
Computed = 0
Local analytics were computed successfully for this leg.
NoInput = 1
No usable premium and no venue IV — nothing to price from; local
analytics stay None (the default before any fill).
Crossed = 2
The IV-inversion quote was crossed — no IV was inverted, local analytics
stay None.
StaleQuote = 3
The two-sided quote the IV inversion would price against went stale:
its stream receipt clock is older than QUOTE_STALE_AFTER relative to
the analytics as_of, so the leg is NOT inverted (a silent quote is never
dressed up as a fresh Computed IV). Local
analytics stay None; any venue iv/gamma is preserved. Distinct from
Stale, which is the OPTION expiring (non-positive time
to expiry), not the quote going silent.
Stale = 4
The input was stale/expired: the time to expiry is non-positive as of
as_of — local analytics stay None.
SolverError = 5
optionstratlib returned a GreeksError or the IV inversion failed to
converge — the local analytics are cleared to None.
Trait Implementations§
impl Copy for LegStatus
impl Eq for LegStatus
impl StructuralPartialEq for LegStatus
Auto Trait Implementations§
impl Freeze for LegStatus
impl RefUnwindSafe for LegStatus
impl Send for LegStatus
impl Sync for LegStatus
impl Unpin for LegStatus
impl UnsafeUnpin for LegStatus
impl UnwindSafe for LegStatus
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.