Struct microkelvin::StoreRef
source ·
[−]pub struct StoreRef<I> { /* fields omitted */ }
Expand description
A clonable reference to a store
Implementations
Store a value, returning a Stored
fat pointer that also carries a
reference to the underlying storage with it
Put a value into the store, returning an Ident.
Return a serializer associated with this store
pub fn get<T>(&self, ident: &Ident<T, I>) -> &T::Archived where
T: Archive,
T::Archived: for<'a> CheckBytes<DefaultValidator<'a>>,
pub fn get<T>(&self, ident: &Ident<T, I>) -> &T::Archived where
T: Archive,
T::Archived: for<'a> CheckBytes<DefaultValidator<'a>>,
Gets a reference to an archived value
Gets a reference to the backing bytes of an archived value
Commit written data, returns an identifier
Request extra space n the underlying buffer
Accept the token back
Trait Implementations
type Error = Infallible
type Error = Infallible
The error produced by any failing methods.
Auto Trait Implementations
impl<I> !RefUnwindSafe for StoreRef<I>
impl<I> !UnwindSafe for StoreRef<I>
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<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,
Gets the layout of the type.