Struct qapi::Qmp [−][src]
pub struct Qmp<S> { /* fields omitted */ }Methods
impl<S: Read + Write + Clone> Qmp<Stream<BufReader<S>, S>>[src]
impl<S: Read + Write + Clone> Qmp<Stream<BufReader<S>, S>>pub fn from_stream(s: S) -> Self[src]
pub fn from_stream(s: S) -> Selfimpl<S> Qmp<S>[src]
impl<S> Qmp<S>pub fn new(stream: S) -> Self[src]
pub fn new(stream: S) -> Selfpub fn into_inner(self) -> S[src]
pub fn into_inner(self) -> SⓘImportant traits for &'a mut Rpub fn inner(&self) -> &S[src]
ⓘImportant traits for &'a mut R
pub fn inner(&self) -> &SⓘImportant traits for &'a mut Rpub fn inner_mut(&mut self) -> &mut S[src]
ⓘImportant traits for &'a mut R
pub fn inner_mut(&mut self) -> &mut SⓘImportant traits for Drain<'a, T>pub fn events(&mut self) -> Drain<Event>[src]
ⓘImportant traits for Drain<'a, T>
pub fn events(&mut self) -> Drain<Event>impl<S: BufRead> Qmp<S>[src]
impl<S: BufRead> Qmp<S>pub fn read_capabilities(&mut self) -> Result<QMP>[src]
pub fn read_capabilities(&mut self) -> Result<QMP>pub fn read_response<C: Command>(&mut self) -> Result<Result<C::Ok, Error>>[src]
pub fn read_response<C: Command>(&mut self) -> Result<Result<C::Ok, Error>>impl<S: BufRead + Write> Qmp<S>[src]
impl<S: BufRead + Write> Qmp<S>pub fn write_command<C: Command>(&mut self, command: &C) -> Result<()>[src]
pub fn write_command<C: Command>(&mut self, command: &C) -> Result<()>pub fn execute<C: Command>(
&mut self,
command: &C
) -> Result<Result<C::Ok, Error>>[src]
pub fn execute<C: Command>(
&mut self,
command: &C
) -> Result<Result<C::Ok, Error>>pub fn handshake(&mut self) -> Result<QMP>[src]
pub fn handshake(&mut self) -> Result<QMP>pub fn nop(&mut self) -> Result<()>[src]
pub fn nop(&mut self) -> Result<()>Can be used to poll the socket for pending events