pub enum DispatchResult2<'a> {
NotFound,
RequiresMut,
Async(Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>),
}Expand description
A helper type returned by Interface callbacks.
Unlike DispatchResult, the Async variant uses
fdo::Result so that D-Bus error names are preserved without nesting through
intermediate crate::Error conversions.
This is an unstable type — compatibility may break in minor version bumps.
Variants§
NotFound
This interface does not support the given method.
RequiresMut
Retry with Interface::call_mut.
This is equivalent to NotFound if returned by call_mut.
Async(Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>)
The method was found and will be completed by running this Future.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DispatchResult2<'a>
impl<'a> !RefUnwindSafe for DispatchResult2<'a>
impl<'a> Send for DispatchResult2<'a>
impl<'a> !Sync for DispatchResult2<'a>
impl<'a> Unpin for DispatchResult2<'a>
impl<'a> UnsafeUnpin for DispatchResult2<'a>
impl<'a> !UnwindSafe for DispatchResult2<'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