pub struct BybitOrderBooksL2Transformer<InstrumentKey> { /* private fields */ }Trait Implementations§
Source§impl<InstrumentKey: Debug> Debug for BybitOrderBooksL2Transformer<InstrumentKey>
impl<InstrumentKey: Debug> Debug for BybitOrderBooksL2Transformer<InstrumentKey>
Source§impl<InstrumentKey, Server> ExchangeTransformer<Bybit<Server>, InstrumentKey, OrderBooksL2> for BybitOrderBooksL2Transformer<InstrumentKey>
impl<InstrumentKey, Server> ExchangeTransformer<Bybit<Server>, InstrumentKey, OrderBooksL2> for BybitOrderBooksL2Transformer<InstrumentKey>
Source§async fn init(
instrument_map: Map<InstrumentKey>,
_: &[MarketEvent<InstrumentKey, OrderBookEvent>],
_: UnboundedSender<WsMessage>,
) -> Result<Self, DataError>
async fn init( instrument_map: Map<InstrumentKey>, _: &[MarketEvent<InstrumentKey, OrderBookEvent>], _: UnboundedSender<WsMessage>, ) -> Result<Self, DataError>
Source§impl<InstrumentKey> Transformer for BybitOrderBooksL2Transformer<InstrumentKey>where
InstrumentKey: Clone,
impl<InstrumentKey> Transformer for BybitOrderBooksL2Transformer<InstrumentKey>where
InstrumentKey: Clone,
type Error = DataError
type Input = BybitPayload<BybitOrderBookInner>
type Output = MarketEvent<InstrumentKey, OrderBookEvent>
type OutputIter = Vec<Result<<BybitOrderBooksL2Transformer<InstrumentKey> as Transformer>::Output, <BybitOrderBooksL2Transformer<InstrumentKey> as Transformer>::Error>>
fn transform(&mut self, input: Self::Input) -> Self::OutputIter
Auto Trait Implementations§
impl<InstrumentKey> Freeze for BybitOrderBooksL2Transformer<InstrumentKey>
impl<InstrumentKey> RefUnwindSafe for BybitOrderBooksL2Transformer<InstrumentKey>where
InstrumentKey: RefUnwindSafe,
impl<InstrumentKey> Send for BybitOrderBooksL2Transformer<InstrumentKey>where
InstrumentKey: Send,
impl<InstrumentKey> Sync for BybitOrderBooksL2Transformer<InstrumentKey>where
InstrumentKey: Sync,
impl<InstrumentKey> Unpin for BybitOrderBooksL2Transformer<InstrumentKey>where
InstrumentKey: Unpin,
impl<InstrumentKey> UnsafeUnpin for BybitOrderBooksL2Transformer<InstrumentKey>
impl<InstrumentKey> UnwindSafe for BybitOrderBooksL2Transformer<InstrumentKey>where
InstrumentKey: 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
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>
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