pub struct PocketChunksDatStorage { /* private fields */ }Expand description
Read-only backend for pre-LevelDB Pocket Edition chunks.dat worlds.
Implementations§
Trait Implementations§
Source§impl Clone for PocketChunksDatStorage
impl Clone for PocketChunksDatStorage
Source§fn clone(&self) -> PocketChunksDatStorage
fn clone(&self) -> PocketChunksDatStorage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PocketChunksDatStorage
impl Debug for PocketChunksDatStorage
Source§impl WorldStorage for PocketChunksDatStorage
impl WorldStorage for PocketChunksDatStorage
Source§fn get_many(&self, keys: &[Bytes]) -> Result<Vec<Option<Bytes>>>
fn get_many(&self, keys: &[Bytes]) -> Result<Vec<Option<Bytes>>>
Looks up raw values by exact key, preserving input order.
Source§fn for_each_key(
&self,
options: StorageReadOptions,
visitor: &mut (dyn FnMut(&[u8]) -> Result<StorageVisitorControl> + Send),
) -> Result<StorageScanOutcome>
fn for_each_key( &self, options: StorageReadOptions, visitor: &mut (dyn FnMut(&[u8]) -> Result<StorageVisitorControl> + Send), ) -> Result<StorageScanOutcome>
Visits keys without forcing value materialization when the backend can
support key-only scans.
Source§fn for_each_prefix(
&self,
prefix: &[u8],
options: StorageReadOptions,
visitor: &mut (dyn FnMut(&[u8], &Bytes) -> Result<StorageVisitorControl> + Send),
) -> Result<StorageScanOutcome>
fn for_each_prefix( &self, prefix: &[u8], options: StorageReadOptions, visitor: &mut (dyn FnMut(&[u8], &Bytes) -> Result<StorageVisitorControl> + Send), ) -> Result<StorageScanOutcome>
Visits key/value records whose key starts with
prefix.Source§fn for_each_prefix_key(
&self,
prefix: &[u8],
options: StorageReadOptions,
visitor: &mut (dyn FnMut(&[u8]) -> Result<StorageVisitorControl> + Send),
) -> Result<StorageScanOutcome>
fn for_each_prefix_key( &self, prefix: &[u8], options: StorageReadOptions, visitor: &mut (dyn FnMut(&[u8]) -> Result<StorageVisitorControl> + Send), ) -> Result<StorageScanOutcome>
Visits keys whose key starts with
prefix without requiring value
materialization when the backend can support key-only scans.Source§fn write_batch(&self, _batch: &StorageBatch) -> Result<()>
fn write_batch(&self, _batch: &StorageBatch) -> Result<()>
Applies a batch of raw operations atomically when supported by the backend.
Source§fn flush(&self) -> Result<()>
fn flush(&self) -> Result<()>
Flushes pending writes to durable storage when supported by the backend.
Source§fn get_many_ordered_with_control(
&self,
keys: &[Bytes],
options: StorageReadOptions,
) -> Result<Vec<Option<Bytes>>>
fn get_many_ordered_with_control( &self, keys: &[Bytes], options: StorageReadOptions, ) -> Result<Vec<Option<Bytes>>>
Looks up raw values by exact key with read options and cancellation, preserving input order.
Source§fn for_each_prefix_ref(
&self,
prefix: &[u8],
options: StorageReadOptions,
visitor: &mut (dyn FnMut(StorageEntryRef<'_>) -> Result<StorageVisitorControl> + Send),
) -> Result<StorageScanOutcome>
fn for_each_prefix_ref( &self, prefix: &[u8], options: StorageReadOptions, visitor: &mut (dyn FnMut(StorageEntryRef<'_>) -> Result<StorageVisitorControl> + Send), ) -> Result<StorageScanOutcome>
Visits key/value records as borrowed byte views.
Source§fn for_each_entry(
&self,
options: StorageReadOptions,
visitor: &mut (dyn FnMut(&[u8], &Bytes) -> Result<StorageVisitorControl> + Send),
) -> Result<StorageScanOutcome>
fn for_each_entry( &self, options: StorageReadOptions, visitor: &mut (dyn FnMut(&[u8], &Bytes) -> Result<StorageVisitorControl> + Send), ) -> Result<StorageScanOutcome>
Visits all key/value records.
Auto Trait Implementations§
impl Freeze for PocketChunksDatStorage
impl RefUnwindSafe for PocketChunksDatStorage
impl Send for PocketChunksDatStorage
impl Sync for PocketChunksDatStorage
impl Unpin for PocketChunksDatStorage
impl UnsafeUnpin for PocketChunksDatStorage
impl UnwindSafe for PocketChunksDatStorage
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> WorldStorageHandle for T
impl<T> WorldStorageHandle for T
Source§fn storage(&self) -> &dyn WorldStorage
fn storage(&self) -> &dyn WorldStorage
Returns the raw storage backend behind this handle.