pub struct HeaderSpecRegistry { /* private fields */ }Expand description
Specification registry for all supported SSTable components
Implementations§
Source§impl HeaderSpecRegistry
impl HeaderSpecRegistry
Sourcepub fn get_spec(
&self,
component_type: SSTableComponentType,
) -> Result<&ComponentHeaderSpec>
pub fn get_spec( &self, component_type: SSTableComponentType, ) -> Result<&ComponentHeaderSpec>
Get specification for a component type
Sourcepub fn parse_header(
&self,
input: &[u8],
component_type: SSTableComponentType,
) -> Result<ParsedHeader>
pub fn parse_header( &self, input: &[u8], component_type: SSTableComponentType, ) -> Result<ParsedHeader>
Parse header for specified component type
Source§impl HeaderSpecRegistry
Convenience parsers for each component type
impl HeaderSpecRegistry
Convenience parsers for each component type
Sourcepub fn parse_data_header(&self, input: &[u8]) -> Result<ParsedHeader>
pub fn parse_data_header(&self, input: &[u8]) -> Result<ParsedHeader>
Parse Data.db header
Sourcepub fn parse_index_header(&self, input: &[u8]) -> Result<ParsedHeader>
pub fn parse_index_header(&self, input: &[u8]) -> Result<ParsedHeader>
Parse Index.db header
Sourcepub fn parse_summary_header(&self, input: &[u8]) -> Result<ParsedHeader>
pub fn parse_summary_header(&self, input: &[u8]) -> Result<ParsedHeader>
Parse Summary.db header with auto-detection of format
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HeaderSpecRegistry
impl RefUnwindSafe for HeaderSpecRegistry
impl Send for HeaderSpecRegistry
impl Sync for HeaderSpecRegistry
impl Unpin for HeaderSpecRegistry
impl UnsafeUnpin for HeaderSpecRegistry
impl UnwindSafe for HeaderSpecRegistry
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more