pub struct Meta { /* private fields */ }
Expand description
A simple map that can be used to store metadata for the pagecache tenant.
Implementations
sourceimpl Meta
impl Meta
sourcepub fn get_root(&self, table: &[u8]) -> Option<usize>
pub fn get_root(&self, table: &[u8]) -> Option<usize>
Retrieve the PageId associated with an identifier
sourcepub fn set_root(&mut self, name: Vec<u8, Global>, pid: usize)
pub fn set_root(&mut self, name: Vec<u8, Global>, pid: usize)
Set the PageId associated with an identifier
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Meta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Meta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Meta
impl Serialize for Meta
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Meta
Auto Trait Implementations
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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