[][src]Enum mongodb::CommandResult

pub enum CommandResult<'a> {
    Success {
        duration: u64,
        reply: Document,
        command_name: String,
        request_id: i64,
        connection_string: String,
    },
    Failure {
        duration: u64,
        command_name: String,
        failure: &'a MongoError,
        request_id: i64,
        connection_string: String,
    },
}

Contains the information about a given command that completed.

Variants

Success

Fields of Success

duration: u64reply: Documentcommand_name: Stringrequest_id: i64connection_string: String
Failure

Fields of Failure

duration: u64command_name: Stringfailure: &'a MongoErrorrequest_id: i64connection_string: String

Trait Implementations

impl<'a> Clone for CommandResult<'a>[src]

impl<'a> Display for CommandResult<'a>[src]

impl<'a> Debug for CommandResult<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for CommandResult<'a>

impl<'a> Sync for CommandResult<'a>

impl<'a> Send for CommandResult<'a>

impl<'a> !UnwindSafe for CommandResult<'a>

impl<'a> !RefUnwindSafe for CommandResult<'a>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self