Struct parquet_format_safe::AesGcmCtrV1
source · pub struct AesGcmCtrV1 {
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§
source§impl AesGcmCtrV1
impl AesGcmCtrV1
pub fn new<F1, F2, F3>(
aad_prefix: F1,
aad_file_unique: F2,
supply_aad_prefix: F3
) -> AesGcmCtrV1where
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<AesGcmCtrV1>
pub async fn stream_from_in_protocol<T: TInputStreamProtocol>(
i_prot: &mut T
) -> Result<AesGcmCtrV1>
pub fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
pub async fn write_to_out_stream_protocol<T: TOutputStreamProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
Trait Implementations§
source§impl AsyncReadThrift for AesGcmCtrV1
impl AsyncReadThrift for AesGcmCtrV1
source§fn stream_from_in_protocol<'life0, 'async_trait, T>(
i_prot: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<AesGcmCtrV1>> + Send + 'async_trait>>where
T: 'async_trait + TInputStreamProtocol,
'life0: 'async_trait,
fn stream_from_in_protocol<'life0, 'async_trait, T>(
i_prot: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<AesGcmCtrV1>> + Send + 'async_trait>>where
T: 'async_trait + TInputStreamProtocol,
'life0: 'async_trait,
Available on crate feature
async
only.source§impl Clone for AesGcmCtrV1
impl Clone for AesGcmCtrV1
source§fn clone(&self) -> AesGcmCtrV1
fn clone(&self) -> AesGcmCtrV1
Returns a copy 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 AesGcmCtrV1
impl Debug for AesGcmCtrV1
source§impl Hash for AesGcmCtrV1
impl Hash for AesGcmCtrV1
source§impl Ord for AesGcmCtrV1
impl Ord for AesGcmCtrV1
source§fn cmp(&self, other: &AesGcmCtrV1) -> Ordering
fn cmp(&self, other: &AesGcmCtrV1) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AesGcmCtrV1> for AesGcmCtrV1
impl PartialEq<AesGcmCtrV1> for AesGcmCtrV1
source§fn eq(&self, other: &AesGcmCtrV1) -> bool
fn eq(&self, other: &AesGcmCtrV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AesGcmCtrV1> for AesGcmCtrV1
impl PartialOrd<AesGcmCtrV1> for AesGcmCtrV1
source§fn partial_cmp(&self, other: &AesGcmCtrV1) -> Option<Ordering>
fn partial_cmp(&self, other: &AesGcmCtrV1) -> Option<Ordering>
1.0.0 · source§fn 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