Enum rusp::usp_generator::OperationResponse
source · pub enum OperationResponse<'a> {
Async(&'a str),
Sync(Vec<(&'a str, &'a str)>),
Error(u32, &'a str),
}
Expand description
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§
source§impl<'a> Debug for OperationResponse<'a>
impl<'a> Debug for OperationResponse<'a>
source§impl<'a> PartialEq for OperationResponse<'a>
impl<'a> PartialEq for OperationResponse<'a>
source§fn eq(&self, other: &OperationResponse<'a>) -> bool
fn eq(&self, other: &OperationResponse<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for OperationResponse<'a>
impl<'a> StructuralPartialEq for OperationResponse<'a>
Auto Trait Implementations§
impl<'a> Freeze for OperationResponse<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more