pub struct TickersEncoder<P> { /* private fields */ }Implementations§
Source§impl<'a, P> TickersEncoder<P>
impl<'a, P> TickersEncoder<P>
pub fn wrap(self, parent: P, count: u32) -> Self
pub fn block_length() -> u16
pub fn parent(&mut self) -> SbeResult<P>
Sourcepub fn advance(&mut self) -> SbeResult<Option<usize>>
pub fn advance(&mut self) -> SbeResult<Option<usize>>
will return Some(current index) when successful otherwise None
Sourcepub fn price_exponent(&mut self, value: i8)
pub fn price_exponent(&mut self, value: i8)
primitive field ‘priceExponent’
- min value: -127
- max value: 127
- null value: -128_i8
- characterEncoding: null
- semanticType: null
- encodedOffset: 0
- encodedLength: 1
- version: 0
Sourcepub fn qty_exponent(&mut self, value: i8)
pub fn qty_exponent(&mut self, value: i8)
primitive field ‘qtyExponent’
- min value: -127
- max value: 127
- null value: -128_i8
- characterEncoding: null
- semanticType: null
- encodedOffset: 1
- encodedLength: 1
- version: 0
Sourcepub fn open_price(&mut self, value: i64)
pub fn open_price(&mut self, value: i64)
primitive field ‘openPrice’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 2
- encodedLength: 8
- version: 0
Sourcepub fn high_price(&mut self, value: i64)
pub fn high_price(&mut self, value: i64)
primitive field ‘highPrice’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 10
- encodedLength: 8
- version: 0
Sourcepub fn low_price(&mut self, value: i64)
pub fn low_price(&mut self, value: i64)
primitive field ‘lowPrice’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 18
- encodedLength: 8
- version: 0
Sourcepub fn last_price(&mut self, value: i64)
pub fn last_price(&mut self, value: i64)
primitive field ‘lastPrice’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 26
- encodedLength: 8
- version: 0
pub fn volume_at(&mut self, index: usize, value: u8)
Sourcepub fn volume(&mut self, value: &[u8])
pub fn volume(&mut self, value: &[u8])
primitive array field ‘volume’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 34
- encodedLength: 16
- version: 0
Sourcepub fn volume_from_iter(&mut self, iter: impl Iterator<Item = u8>)
pub fn volume_from_iter(&mut self, iter: impl Iterator<Item = u8>)
primitive array field ‘volume’ from an Iterator
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 34
- encodedLength: 16
- version: 0
Sourcepub fn volume_zero_padded(&mut self, value: &[u8])
pub fn volume_zero_padded(&mut self, value: &[u8])
primitive array field ‘volume’ with zero padding
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 34
- encodedLength: 16
- version: 0
pub fn quote_volume_at(&mut self, index: usize, value: u8)
Sourcepub fn quote_volume(&mut self, value: &[u8])
pub fn quote_volume(&mut self, value: &[u8])
primitive array field ‘quoteVolume’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 50
- encodedLength: 16
- version: 0
Sourcepub fn quote_volume_from_iter(&mut self, iter: impl Iterator<Item = u8>)
pub fn quote_volume_from_iter(&mut self, iter: impl Iterator<Item = u8>)
primitive array field ‘quoteVolume’ from an Iterator
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 50
- encodedLength: 16
- version: 0
Sourcepub fn quote_volume_zero_padded(&mut self, value: &[u8])
pub fn quote_volume_zero_padded(&mut self, value: &[u8])
primitive array field ‘quoteVolume’ with zero padding
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 50
- encodedLength: 16
- version: 0
Sourcepub fn open_time(&mut self, value: i64)
pub fn open_time(&mut self, value: i64)
primitive field ‘openTime’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 66
- encodedLength: 8
- version: 0
Sourcepub fn close_time(&mut self, value: i64)
pub fn close_time(&mut self, value: i64)
primitive field ‘closeTime’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 74
- encodedLength: 8
- version: 0
Sourcepub fn first_id(&mut self, value: i64)
pub fn first_id(&mut self, value: i64)
primitive field ‘firstId’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 82
- encodedLength: 8
- version: 0
Sourcepub fn last_id(&mut self, value: i64)
pub fn last_id(&mut self, value: i64)
primitive field ‘lastId’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 90
- encodedLength: 8
- version: 0
Sourcepub fn num_trades(&mut self, value: i64)
pub fn num_trades(&mut self, value: i64)
primitive field ‘numTrades’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 98
- encodedLength: 8
- version: 0
Trait Implementations§
Source§impl<P: Debug> Debug for TickersEncoder<P>
impl<P: Debug> Debug for TickersEncoder<P>
Source§impl<P: Default> Default for TickersEncoder<P>
impl<P: Default> Default for TickersEncoder<P>
Source§fn default() -> TickersEncoder<P>
fn default() -> TickersEncoder<P>
Returns the “default value” for a type. Read more
Source§impl<'a, P> Encoder<'a> for TickersEncoder<P>
impl<'a, P> Encoder<'a> for TickersEncoder<P>
Source§impl<'a, P> Writer<'a> for TickersEncoder<P>
impl<'a, P> Writer<'a> for TickersEncoder<P>
fn get_buf_mut(&mut self) -> &mut WriteBuf<'a>
Auto Trait Implementations§
impl<P> Freeze for TickersEncoder<P>where
P: Freeze,
impl<P> RefUnwindSafe for TickersEncoder<P>where
P: RefUnwindSafe,
impl<P> Send for TickersEncoder<P>where
P: Send,
impl<P> Sync for TickersEncoder<P>where
P: Sync,
impl<P> Unpin for TickersEncoder<P>where
P: Unpin,
impl<P> UnsafeUnpin for TickersEncoder<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for TickersEncoder<P>where
P: 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
§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