Enum rusp::usp_generator::OperationResponse[][src]

pub enum OperationResponse<'a> {
    Async(&'a str),
    Sync(Vec<(&'a str, &'a str)>),
    Error(u32, &'a str),
}

Enum describing the result of an operation, sent through the Operate response

Variants

Async(&'a str)

A path to the object responsible for performing the operation asynchronously, corresponds to req_obj_path in the protobuf scheme

Sync(Vec<(&'a str, &'a str)>)

The result of an operation that was made synchronously, corresponds to req_output_args in the protobuf scheme

Error(u32, &'a str)

An operation error, corresponds to cmd_failure in the protobuf scheme

Trait Implementations

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

impl<'a> PartialEq<OperationResponse<'a>> for OperationResponse<'a>[src]

impl<'a> StructuralPartialEq for OperationResponse<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for OperationResponse<'a>

impl<'a> Send for OperationResponse<'a>

impl<'a> Sync for OperationResponse<'a>

impl<'a> Unpin for OperationResponse<'a>

impl<'a> UnwindSafe for OperationResponse<'a>

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.