Struct snapshot_trigger_service::client::rest::SnapshotRestClient
source · pub struct SnapshotRestClient(SchedulerRestClient);
Tuple Fields§
§0: SchedulerRestClient
Implementations§
source§impl SnapshotRestClient
impl SnapshotRestClient
pub fn new_with_token(token: String, address: String) -> Self
pub fn new(address: String) -> Self
pub fn token(&self) -> &Option<String>
pub fn address(&self) -> &String
pub fn list_files(&self) -> Result<FolderDump, Error>
pub fn download_snapshot<S: Into<String>, P: AsRef<Path>>( &self, id: S, tag: S, output: P ) -> Result<(), Error>
pub fn get_snapshot<S: Into<String>>( &self, id: S, tag: S ) -> Result<String, Error>
pub fn download_job_status<S: Into<String>, P: AsRef<Path>>( &self, id: S, output: P ) -> Result<(), Error>
pub fn get_status<S: Into<String>>(&self, id: S) -> Result<ContextState, Error>
pub fn job_new(&self, params: JobParameters) -> Result<String, Error>
pub fn wait_for_job_finish<S: Into<String>>( &self, id: S, wait: Wait ) -> Result<ContextState, Error>
pub fn is_up(&self) -> bool
Trait Implementations§
source§impl Debug for SnapshotRestClient
impl Debug for SnapshotRestClient
source§impl Into<SchedulerRestClient> for SnapshotRestClient
impl Into<SchedulerRestClient> for SnapshotRestClient
source§fn into(self) -> SchedulerRestClient
fn into(self) -> SchedulerRestClient
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotRestClient
impl Send for SnapshotRestClient
impl Sync for SnapshotRestClient
impl Unpin for SnapshotRestClient
impl UnwindSafe for SnapshotRestClient
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