pub struct KlinesEncoder<P> { /* private fields */ }Implementations§
Source§impl<'a, P> KlinesEncoder<P>
impl<'a, P> KlinesEncoder<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 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: 0
- encodedLength: 8
- 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: 8
- 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: 16
- 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: 24
- encodedLength: 8
- version: 0
Sourcepub fn close_price(&mut self, value: i64)
pub fn close_price(&mut self, value: i64)
primitive field ‘closePrice’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 32
- 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: 40
- 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: 40
- 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: 40
- encodedLength: 16
- 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: 56
- encodedLength: 8
- 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: 64
- 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: 64
- 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: 64
- encodedLength: 16
- 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: 80
- encodedLength: 8
- version: 0
pub fn taker_buy_base_volume_at(&mut self, index: usize, value: u8)
Sourcepub fn taker_buy_base_volume(&mut self, value: &[u8])
pub fn taker_buy_base_volume(&mut self, value: &[u8])
primitive array field ‘takerBuyBaseVolume’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 88
- encodedLength: 16
- version: 0
Sourcepub fn taker_buy_base_volume_from_iter(
&mut self,
iter: impl Iterator<Item = u8>,
)
pub fn taker_buy_base_volume_from_iter( &mut self, iter: impl Iterator<Item = u8>, )
primitive array field ‘takerBuyBaseVolume’ from an Iterator
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 88
- encodedLength: 16
- version: 0
Sourcepub fn taker_buy_base_volume_zero_padded(&mut self, value: &[u8])
pub fn taker_buy_base_volume_zero_padded(&mut self, value: &[u8])
primitive array field ‘takerBuyBaseVolume’ with zero padding
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 88
- encodedLength: 16
- version: 0
pub fn taker_buy_quote_volume_at(&mut self, index: usize, value: u8)
Sourcepub fn taker_buy_quote_volume(&mut self, value: &[u8])
pub fn taker_buy_quote_volume(&mut self, value: &[u8])
primitive array field ‘takerBuyQuoteVolume’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 104
- encodedLength: 16
- version: 0
Sourcepub fn taker_buy_quote_volume_from_iter(
&mut self,
iter: impl Iterator<Item = u8>,
)
pub fn taker_buy_quote_volume_from_iter( &mut self, iter: impl Iterator<Item = u8>, )
primitive array field ‘takerBuyQuoteVolume’ from an Iterator
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 104
- encodedLength: 16
- version: 0
Sourcepub fn taker_buy_quote_volume_zero_padded(&mut self, value: &[u8])
pub fn taker_buy_quote_volume_zero_padded(&mut self, value: &[u8])
primitive array field ‘takerBuyQuoteVolume’ with zero padding
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 104
- encodedLength: 16
- version: 0
Trait Implementations§
Source§impl<P: Debug> Debug for KlinesEncoder<P>
impl<P: Debug> Debug for KlinesEncoder<P>
Source§impl<P: Default> Default for KlinesEncoder<P>
impl<P: Default> Default for KlinesEncoder<P>
Source§fn default() -> KlinesEncoder<P>
fn default() -> KlinesEncoder<P>
Source§impl<'a, P> Encoder<'a> for KlinesEncoder<P>
impl<'a, P> Encoder<'a> for KlinesEncoder<P>
Source§impl<'a, P> Writer<'a> for KlinesEncoder<P>
impl<'a, P> Writer<'a> for KlinesEncoder<P>
fn get_buf_mut(&mut self) -> &mut WriteBuf<'a>
Auto Trait Implementations§
impl<P> Freeze for KlinesEncoder<P>where
P: Freeze,
impl<P> RefUnwindSafe for KlinesEncoder<P>where
P: RefUnwindSafe,
impl<P> Send for KlinesEncoder<P>where
P: Send,
impl<P> Sync for KlinesEncoder<P>where
P: Sync,
impl<P> Unpin for KlinesEncoder<P>where
P: Unpin,
impl<P> UnsafeUnpin for KlinesEncoder<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for KlinesEncoder<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
§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>
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 more