pub enum TargetArchive {
ObjectStorage(Url),
File(PathBuf),
Writer(Box<dyn AsyncWrite + Send + Unpin>),
}Expand description
Represents where we will write the target archive
Variants§
ObjectStorage(Url)
Write the tar archive to object storage at the specified URL.
The URL must specify a bucket and a complete object name.
File(PathBuf)
Write the tar archive to the local filesystem
Writer(Box<dyn AsyncWrite + Send + Unpin>)
Write the tar archive to some arbitrary tokio::io::AsyncWrite impl.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TargetArchive
impl !RefUnwindSafe for TargetArchive
impl Send for TargetArchive
impl !Sync for TargetArchive
impl Unpin for TargetArchive
impl !UnwindSafe for TargetArchive
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.