struct SerializedPageReaderContext {
read_stats: bool,
crypto_context: Option<Arc<CryptoContext>>,
}Fields§
§read_stats: boolControls decoding of page-level statistics
crypto_context: Option<Arc<CryptoContext>>Crypto context carrying objects required for decryption
Implementations§
Source§impl SerializedPageReaderContext
impl SerializedPageReaderContext
fn read_page_header<T: Read>( &self, input: &mut T, page_index: usize, dictionary_page: bool, ) -> Result<PageHeader>
fn decrypt_page_data<T>( &self, buffer: T, page_index: usize, dictionary_page: bool, ) -> Result<T>
fn page_crypto_context( &self, page_index: usize, dictionary_page: bool, ) -> Option<Arc<CryptoContext>>
Trait Implementations§
Source§impl Default for SerializedPageReaderContext
impl Default for SerializedPageReaderContext
Source§fn default() -> SerializedPageReaderContext
fn default() -> SerializedPageReaderContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerializedPageReaderContext
impl !RefUnwindSafe for SerializedPageReaderContext
impl Send for SerializedPageReaderContext
impl Sync for SerializedPageReaderContext
impl Unpin for SerializedPageReaderContext
impl !UnwindSafe for SerializedPageReaderContext
Blanket Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more