Struct parquet_format_safe::AesGcmV1
source · [−]pub struct AesGcmV1 {
pub aad_prefix: Option<Vec<u8>>,
pub aad_file_unique: Option<Vec<u8>>,
pub supply_aad_prefix: Option<bool>,
}
Fields
aad_prefix: Option<Vec<u8>>
AAD prefix *
aad_file_unique: Option<Vec<u8>>
Unique file identifier part of AAD suffix *
supply_aad_prefix: Option<bool>
In files encrypted with AAD prefix without storing it, readers must supply the prefix *
Implementations
sourceimpl AesGcmV1
impl AesGcmV1
pub fn new<F1, F2, F3>(
aad_prefix: F1,
aad_file_unique: F2,
supply_aad_prefix: F3
) -> AesGcmV1 where
F1: Into<Option<Vec<u8>>>,
F2: Into<Option<Vec<u8>>>,
F3: Into<Option<bool>>,
pub fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<AesGcmV1>
pub fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
Trait Implementations
sourceimpl Ord for AesGcmV1
impl Ord for AesGcmV1
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<AesGcmV1> for AesGcmV1
impl PartialOrd<AesGcmV1> for AesGcmV1
sourcefn partial_cmp(&self, other: &AesGcmV1) -> Option<Ordering>
fn partial_cmp(&self, other: &AesGcmV1) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl ReadThrift for AesGcmV1
impl ReadThrift for AesGcmV1
fn read_from_in_protocol<T: TInputProtocol>(i_prot: &mut T) -> Result<AesGcmV1>
impl Eq for AesGcmV1
impl StructuralEq for AesGcmV1
impl StructuralPartialEq for AesGcmV1
Auto Trait Implementations
impl RefUnwindSafe for AesGcmV1
impl Send for AesGcmV1
impl Sync for AesGcmV1
impl Unpin for AesGcmV1
impl UnwindSafe for AesGcmV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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