pub struct EncryptionFactoryRegistry { /* private fields */ }Available on crate feature
parquet_encryption only.Expand description
Stores EncryptionFactory implementations that can be retrieved by a unique string identifier
Implementations§
Source§impl EncryptionFactoryRegistry
impl EncryptionFactoryRegistry
Sourcepub fn register_factory(
&self,
id: &str,
factory: Arc<dyn EncryptionFactory>,
) -> Option<Arc<dyn EncryptionFactory>>
pub fn register_factory( &self, id: &str, factory: Arc<dyn EncryptionFactory>, ) -> Option<Arc<dyn EncryptionFactory>>
Register an EncryptionFactory with an associated identifier that can be later
used to configure encryption when reading or writing Parquet.
If an encryption factory with the same identifier was already registered, it is replaced and returned.
Sourcepub fn get_factory(&self, id: &str) -> Result<Arc<dyn EncryptionFactory>>
pub fn get_factory(&self, id: &str) -> Result<Arc<dyn EncryptionFactory>>
Retrieve an EncryptionFactory by its identifier
Trait Implementations§
Source§impl Clone for EncryptionFactoryRegistry
impl Clone for EncryptionFactoryRegistry
Source§fn clone(&self) -> EncryptionFactoryRegistry
fn clone(&self) -> EncryptionFactoryRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptionFactoryRegistry
impl Debug for EncryptionFactoryRegistry
Source§impl Default for EncryptionFactoryRegistry
impl Default for EncryptionFactoryRegistry
Source§fn default() -> EncryptionFactoryRegistry
fn default() -> EncryptionFactoryRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncryptionFactoryRegistry
impl !RefUnwindSafe for EncryptionFactoryRegistry
impl Send for EncryptionFactoryRegistry
impl Sync for EncryptionFactoryRegistry
impl Unpin for EncryptionFactoryRegistry
impl !UnwindSafe for EncryptionFactoryRegistry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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