pub struct Execute<C, I = Never> {
pub execute: PhantomData<&'static str>,
pub arguments: C,
pub id: Option<I>,
}
Fields§
§execute: PhantomData<&'static str>
§arguments: C
§id: Option<I>
Implementations§
Trait Implementations§
source§impl<C, I> Serialize for Execute<C, I>where
C: Command + Serialize,
I: Serialize,
impl<C, I> Serialize for Execute<C, I>where C: Command + Serialize, I: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<S: AsyncWrite, C: QgaCommand, I: Serialize> Sink<Execute<C, I>> for QgaStreamTokio<S>
impl<S: AsyncWrite, C: QgaCommand, I: Serialize> Sink<Execute<C, I>> for QgaStreamTokio<S>
source§fn start_send(
self: Pin<&mut Self>,
item: Execute<C, I>
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: Execute<C, I> ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moresource§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moresource§impl<S: AsyncWrite, C: QmpCommand, I: Serialize> Sink<Execute<C, I>> for QmpStreamTokio<S>
impl<S: AsyncWrite, C: QmpCommand, I: Serialize> Sink<Execute<C, I>> for QmpStreamTokio<S>
source§fn start_send(
self: Pin<&mut Self>,
item: Execute<C, I>
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: Execute<C, I> ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moresource§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreAuto Trait Implementations§
impl<C, I> RefUnwindSafe for Execute<C, I>where C: RefUnwindSafe, I: RefUnwindSafe,
impl<C, I> Send for Execute<C, I>where C: Send, I: Send,
impl<C, I> Sync for Execute<C, I>where C: Sync, I: Sync,
impl<C, I> Unpin for Execute<C, I>where C: Unpin, I: Unpin,
impl<C, I> UnwindSafe for Execute<C, I>where C: UnwindSafe, I: UnwindSafe,
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