pub struct SpaResult(/* private fields */);
Expand description
A result returned by a SPA method, usually to be converted to
a Rust result using SpaResult::into_result
or SpaResult::into_async_result
.
Implementations§
source§impl SpaResult
impl SpaResult
sourcepub fn new_return_async(seq: i32) -> Self
pub fn new_return_async(seq: i32) -> Self
Pending return for async operation identified with sequence number seq
.
sourcepub fn into_result(self) -> Result<SpaSuccess, Error>
pub fn into_result(self) -> Result<SpaSuccess, Error>
sourcepub fn into_async_result(self) -> Result<AsyncSeq, Error>
pub fn into_async_result(self) -> Result<AsyncSeq, Error>
Trait Implementations§
source§impl PartialEq for SpaResult
impl PartialEq for SpaResult
impl Eq for SpaResult
impl StructuralPartialEq for SpaResult
Auto Trait Implementations§
impl RefUnwindSafe for SpaResult
impl Send for SpaResult
impl Sync for SpaResult
impl Unpin for SpaResult
impl UnwindSafe for SpaResult
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