pub enum InstrumentParseResult {
Ok(Box<InstrumentAny>),
Unsupported {
symbol: String,
instrument_type: BitmexInstrumentType,
},
Failed {
symbol: String,
instrument_type: BitmexInstrumentType,
error: String,
},
}Expand description
Result of attempting to parse a BitMEX instrument.
Variants§
Ok(Box<InstrumentAny>)
Successfully parsed into a Nautilus instrument.
Unsupported
Instrument type is not yet supported (intentionally skipped).
Failed
Failed to parse due to an error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstrumentParseResult
impl RefUnwindSafe for InstrumentParseResult
impl Send for InstrumentParseResult
impl Sync for InstrumentParseResult
impl Unpin for InstrumentParseResult
impl UnwindSafe for InstrumentParseResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 more