pub struct Source { /* private fields */ }Expand description
Data package source on S3 object store
Implementations§
Trait Implementations§
Source§impl PackageStream for Source
impl PackageStream for Source
Source§type FileStream = GetObjectOutput
type FileStream = GetObjectOutput
This intermediate associated type is used here to avoid a
return-position impl of the
Self::open_file_header_stream method.
If this method would have a return-position impl, the impl would
capture the lifetime of &self and the compiler would require a
’static lifetime for &self:Source§async fn open_central_directory_stream(
&self,
) -> Result<(impl Read + Seek, u64), Self::Error>
async fn open_central_directory_stream( &self, ) -> Result<(impl Read + Seek, u64), Self::Error>
Open the central directory to read the ZIP archive TOC. Read more
Source§async fn open_file_header_stream(
&self,
offset: u64,
total_size: u64,
) -> Result<Self::FileStream, Either<HeaderParseError, Self::Error>>
async fn open_file_header_stream( &self, offset: u64, total_size: u64, ) -> Result<Self::FileStream, Either<HeaderParseError, Self::Error>>
Open the actual data at a given offset.
Source§async fn open_raw(&self) -> Result<Self::FileStream, Self::Error>
async fn open_raw(&self) -> Result<Self::FileStream, Self::Error>
Open package file as raw bytes
Source§fn local_header_size<R: AsyncBufRead + Unpin>(
reader: &mut R,
) -> impl Future<Output = Result<u64, HeaderParseError>>
fn local_header_size<R: AsyncBufRead + Unpin>( reader: &mut R, ) -> impl Future<Output = Result<u64, HeaderParseError>>
Provided for convenience as dependency injection.
Auto Trait Implementations§
impl Freeze for Source
impl !RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl !UnwindSafe for Source
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.