[−][src]Struct rusty_tarantool::tarantool::packets::TarantoolResponse
Tarantool response struct
use any decode method to decode tarantool response to custom struct by serde please look examples https://github.com/zheludkovm/RustyTarantool/tree/master/examples
Fields
code: u64
data: Bytes
Implementations
impl TarantoolResponse
[src]
pub fn new(code: u64, data: Bytes) -> TarantoolResponse
[src]
pub fn decode<'de, T>(self) -> Result<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
decode tarantool response to any serder deserializable struct
pub fn decode_single<'de, T>(self) -> Result<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
decode tarantool response to tuple wih one element and return this element
pub fn decode_pair<'de, T1, T2>(self) -> Result<(T1, T2)> where
T1: Deserialize<'de>,
T2: Deserialize<'de>,
[src]
T1: Deserialize<'de>,
T2: Deserialize<'de>,
decode tarantool response to tuple of two elements
pub fn decode_trio<'de, T1, T2, T3>(self) -> Result<(T1, T2, T3)> where
T1: Deserialize<'de>,
T2: Deserialize<'de>,
T3: Deserialize<'de>,
[src]
T1: Deserialize<'de>,
T2: Deserialize<'de>,
T3: Deserialize<'de>,
decode tarantool response to three elements
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TarantoolResponse
[src]
impl Send for TarantoolResponse
[src]
impl Sync for TarantoolResponse
[src]
impl Unpin for TarantoolResponse
[src]
impl UnwindSafe for TarantoolResponse
[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>,