[−][src]Struct rusty_tarantool::tarantool::codec::TarantoolCodec
Tokio framed codec for tarantool use it if you want manually set it on your tokio framed transport
Implementations
impl TarantoolCodec
[src]
pub fn new() -> TarantoolCodec
[src]
Trait Implementations
impl Debug for TarantoolCodec
[src]
impl Decoder for TarantoolCodec
[src]
type Item = (RequestId, Result<TarantoolResponse>)
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
pub fn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<(RequestId, Result<TarantoolResponse>)>>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<(RequestId, Result<TarantoolResponse>)>>
pub fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
pub fn framed<T>(self, io: T) -> Framed<T, Self> where
Self: Encoder,
T: AsyncRead + AsyncWrite,
[src]
Self: Encoder,
T: AsyncRead + AsyncWrite,
impl Encoder for TarantoolCodec
[src]
Auto Trait Implementations
impl RefUnwindSafe for TarantoolCodec
[src]
impl Send for TarantoolCodec
[src]
impl Sync for TarantoolCodec
[src]
impl Unpin for TarantoolCodec
[src]
impl UnwindSafe for TarantoolCodec
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,