pub enum ArchiveAsync {
OnMemory(OnMemoryArchive),
FileStreaming(FileStreamingArchiveAsync<PlatformNativeFileReaderAsync>),
}Variants§
OnMemory(OnMemoryArchive)
FileStreaming(FileStreamingArchiveAsync<PlatformNativeFileReaderAsync>)
Implementations§
Source§impl ArchiveAsync
impl ArchiveAsync
Sourcepub async fn new(
blob: PlatformNativeFileReaderAsync,
check_integrity: bool,
) -> Result<Self, ArchiveReadError>
pub async fn new( blob: PlatformNativeFileReaderAsync, check_integrity: bool, ) -> Result<Self, ArchiveReadError>
Creates a new archive reader from a platform-specific blob reader.
pub fn list_entry(&self, callback: impl FnMut(AssetNameRef<'_>))
pub fn find_entry(&self, name: &str, ext: &str) -> Option<AssetEntryHeadingPair>
pub fn read_bin<'a>( &'a self, heading: AssetEntryHeadingPair, ) -> ArchiveBinReaderAsync<'a, PlatformNativeFileReaderAsync>
Auto Trait Implementations§
impl !Freeze for ArchiveAsync
impl RefUnwindSafe for ArchiveAsync
impl !Send for ArchiveAsync
impl !Sync for ArchiveAsync
impl Unpin for ArchiveAsync
impl UnwindSafe for ArchiveAsync
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