pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(us: PathBuf) -> Result<Self>
pub fn handshake(&mut self) -> Result<()>
pub fn parsed_reply(&mut self) -> Result<GenericReturn>
pub fn send_command<T>( &mut self, execute: &str, args: Option<Value>, ) -> Result<T>
pub fn block_devices(&mut self) -> Result<QueryBlock>
pub fn jobs(&mut self) -> Result<QueryJobs>
pub fn disk_nodes(&mut self) -> Result<Vec<String>>
pub fn wait_for_job(&mut self, id: &str) -> Result<JobInfo>
pub fn delete_job(&mut self, id: &str) -> Result<()>
pub fn snapshot_save(&mut self, name: &str) -> Result<()>
pub fn snapshot_load(&mut self, name: &str) -> Result<()>
pub fn snapshot_delete(&mut self, name: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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