Struct microkelvin::HostStore
source · [−]pub struct HostStore { /* private fields */ }
Expand description
Store that utilises a reference-counted PageStorage
Implementations
Trait Implementations
sourceimpl Store for HostStore
impl Store for HostStore
type Identifier = OffsetLen
type Identifier = OffsetLen
The identifier used for refering to stored values
sourcefn get<'a>(&'a self, id: &Self::Identifier) -> &'a [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn get<'a>(&'a self, id: &Self::Identifier) -> &'a [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Gets a reference to an archived value
sourcefn request_buffer(&self) -> TokenBuffer
fn request_buffer(&self) -> TokenBuffer
Request a buffer to write data
sourcefn extend(&self, buffer: &mut TokenBuffer) -> Result<(), ()>
fn extend(&self, buffer: &mut TokenBuffer) -> Result<(), ()>
Request additional bytes for writing
sourcefn commit(&self, buf: &mut TokenBuffer) -> Self::Identifier
fn commit(&self, buf: &mut TokenBuffer) -> Self::Identifier
Commit written bytes to the
sourcefn return_token(&self, token: Token)
fn return_token(&self, token: Token)
Return the token to the store
Auto Trait Implementations
impl !RefUnwindSafe for HostStore
impl Send for HostStore
impl Sync for HostStore
impl Unpin for HostStore
impl !UnwindSafe for HostStore
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more