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<PageId>
pub fn get_root(&self, table: &[u8]) -> Option<PageId>
Retrieve the PageId associated with an identifier
sourcepub fn set_root(&mut self, name: Vec<u8>, pid: PageId)
pub fn set_root(&mut self, name: Vec<u8>, pid: PageId)
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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