#[repr(u8)]pub enum SnapshotStream {
Disk = 0,
Memory = 1,
}Expand description
Logical stream identifier for dual-stream snapshots.
Hexz snapshots can store two independent data streams:
- Disk: Persistent storage (disk image, filesystem data)
- Memory: Volatile state (RAM contents, process memory)
§Example
use hexz_core::{File, SnapshotStream};
// Read 4KB from disk stream
let disk_data = snapshot.read_at(SnapshotStream::Disk, 0, 4096)?;
// Read 4KB from memory stream (if present)
let mem_data = snapshot.read_at(SnapshotStream::Memory, 0, 4096)?;Variants§
Trait Implementations§
Source§impl Clone for SnapshotStream
impl Clone for SnapshotStream
Source§fn clone(&self) -> SnapshotStream
fn clone(&self) -> SnapshotStream
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotStream
impl Debug for SnapshotStream
Source§impl PartialEq for SnapshotStream
impl PartialEq for SnapshotStream
impl Copy for SnapshotStream
impl Eq for SnapshotStream
impl StructuralPartialEq for SnapshotStream
Auto Trait Implementations§
impl Freeze for SnapshotStream
impl RefUnwindSafe for SnapshotStream
impl Send for SnapshotStream
impl Sync for SnapshotStream
impl Unpin for SnapshotStream
impl UnsafeUnpin for SnapshotStream
impl UnwindSafe for SnapshotStream
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more