pub struct QapiService<W> { /* private fields */ }Implementations§
Source§impl<W> QapiService<W>
impl<W> QapiService<W>
pub fn execute<C: Command>( &self, command: C, ) -> impl Future<Output = ExecuteResult<C>>
pub fn guest_sync( &self, sync_value: i32, ) -> impl Future<Output = Result<(), ExecuteError>>
Trait Implementations§
Source§impl<W> Drop for QapiService<W>
impl<W> Drop for QapiService<W>
Source§impl<W, C: Command + 'static> Service<C> for QapiService<W>
impl<W, C: Command + 'static> Service<C> for QapiService<W>
Source§type Error = ExecuteError
type Error = ExecuteError
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<QapiService<W> as Service<C>>::Response, <QapiService<W> as Service<C>>::Error>>>>
type Future = Pin<Box<dyn Future<Output = Result<<QapiService<W> as Service<C>>::Response, <QapiService<W> as Service<C>>::Error>>>>
The future response value.
Auto Trait Implementations§
impl<W> !Freeze for QapiService<W>
impl<W> !RefUnwindSafe for QapiService<W>
impl<W> Send for QapiService<W>where
W: Send,
impl<W> Sync for QapiService<W>where
W: Send,
impl<W> Unpin for QapiService<W>
impl<W> !UnwindSafe for QapiService<W>
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