[−][src]Struct coldsnap::SnapshotUploader
Implementations
impl SnapshotUploader
[src]
pub fn new(ebs_client: EbsClient) -> Self
[src]
pub async fn upload_from_file<P: AsRef<Path>, '_, '_>(
&'_ self,
path: P,
volume_size: Option<i64>,
description: Option<&'_ str>,
progress_bar: Option<ProgressBar>
) -> Result<String, Error>
[src]
&'_ self,
path: P,
volume_size: Option<i64>,
description: Option<&'_ str>,
progress_bar: Option<ProgressBar>
) -> Result<String, Error>
Upload a snapshot from the file at the specified path.
path
is the source file for the snapshot.volume_size
is the desired size in GiB. If no size is provided (None
), the source file's size will be rounded up to the nearest GiB and used instead.description
is the snapshot description. If no description is provided (None
), the source file's name will be used instead.progress_bar
is optional, since output to the terminal may not be wanted.
Auto Trait Implementations
impl !RefUnwindSafe for SnapshotUploader
impl Send for SnapshotUploader
impl Sync for SnapshotUploader
impl Unpin for SnapshotUploader
impl !UnwindSafe for SnapshotUploader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,