Struct qapi::futures::QapiService
source · 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>>where W: Sink<Execute<C, u32>, Error = Error> + Unpin,
pub fn guest_sync( &self, sync_value: i32 ) -> impl Future<Output = Result<(), ExecuteError>>where W: Sink<Execute<guest_sync, u32>, Error = Error> + Unpin,
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>where
W: Sink<Execute<C, u32>, Error = Error> + Unpin + Send + 'static,
impl<W, C: Command + 'static> Service<C> for QapiService<W>where W: Sink<Execute<C, u32>, Error = Error> + Unpin + Send + 'static,
§type Error = ExecuteError
type Error = ExecuteError
Errors produced by the service.
§type Future = Pin<Box<dyn Future<Output = Result<<QapiService<W> as Service<C>>::Response, <QapiService<W> as Service<C>>::Error>>, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<QapiService<W> as Service<C>>::Response, <QapiService<W> as Service<C>>::Error>>, Global>>
The future response value.
Auto Trait Implementations§
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