[][src]Struct talk_loco_commands::BsonResData

pub struct BsonResData<D> { /* fields omitted */ }

Wrapping response status, data

Note: Official server doesn't include response data if operation failed. Check src/structs/client.rs Status enum for predefined status ids.

Implementations

impl<D: BsonData> BsonResData<D>[src]

pub fn new(status: i16, response: Option<D>) -> Self[src]

pub fn response(self) -> Option<D>[src]

pub fn as_ref(&self) -> Option<&D>[src]

pub fn as_mut(&mut self) -> Option<&mut D>[src]

Trait Implementations

impl<D: Clone> Clone for BsonResData<D>[src]

impl<D: BsonData> CommandData for BsonResData<D>[src]

impl<D: Debug> Debug for BsonResData<D>[src]

impl<'de, D> Deserialize<'de> for BsonResData<D> where
    D: Deserialize<'de>, 
[src]

impl<D> Serialize for BsonResData<D> where
    D: Serialize
[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for BsonResData<D> where
    D: RefUnwindSafe

impl<D> Send for BsonResData<D> where
    D: Send

impl<D> Sync for BsonResData<D> where
    D: Sync

impl<D> Unpin for BsonResData<D> where
    D: Unpin

impl<D> UnwindSafe for BsonResData<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,