[][src]Struct asuran::repository::backend::mem::Mem

pub struct Mem {
    data: Segment<Cursor<Vec<u8>>>,
    index: HashMap<ChunkID, SegmentDescriptor>,
    manifest: Vec<StoredArchive>,
    chunk_settings: ChunkSettings,
    key: Option<EncryptedKey>,
    actual_key: Key,
    len: u64,
}

Fields

data: Segment<Cursor<Vec<u8>>>index: HashMap<ChunkID, SegmentDescriptor>manifest: Vec<StoredArchive>chunk_settings: ChunkSettingskey: Option<EncryptedKey>actual_key: Keylen: u64

Methods

impl Mem[src]

pub fn new_raw(chunk_settings: ChunkSettings, key: Key) -> Mem[src]

pub fn new(chunk_settings: ChunkSettings, key: Key) -> BackendHandle<Mem>[src]

Trait Implementations

impl Debug for Mem[src]

impl SyncBackend for Mem[src]

type SyncManifest = Self

type SyncIndex = Self

impl SyncIndex for Mem[src]

impl SyncManifest for Mem[src]

Auto Trait Implementations

impl RefUnwindSafe for Mem

impl Send for Mem

impl Sync for Mem

impl Unpin for Mem

impl UnwindSafe for Mem

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]