pub struct StreamAPIClientCodec;Expand description
Defines the encoding and decoding of Betfair stream api data structures using tokio
Trait Implementations§
Source§impl Decoder for StreamAPIClientCodec
impl Decoder for StreamAPIClientCodec
Source§type Item = (Bytes, ResponseMessage)
type Item = (Bytes, ResponseMessage)
The type of decoded frames.
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for StreamAPIClientCodec
impl RefUnwindSafe for StreamAPIClientCodec
impl Send for StreamAPIClientCodec
impl Sync for StreamAPIClientCodec
impl Unpin for StreamAPIClientCodec
impl UnwindSafe for StreamAPIClientCodec
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