pub struct EncryptionState { /* private fields */ }
Implementations§
Source§impl EncryptionState
impl EncryptionState
pub fn version(&self) -> i64
pub fn revision(&self) -> i64
pub fn key_length(&self) -> Option<usize>
pub fn encrypt_metadata(&self) -> bool
pub fn crypt_filters(&self) -> &BTreeMap<Vec<u8>, Arc<dyn CryptFilter>>
pub fn file_encryption_key(&self) -> &[u8] ⓘ
pub fn default_stream_filter(&self) -> &[u8] ⓘ
pub fn default_string_filter(&self) -> &[u8] ⓘ
pub fn owner_value(&self) -> &[u8] ⓘ
pub fn owner_encrypted(&self) -> &[u8] ⓘ
pub fn user_value(&self) -> &[u8] ⓘ
pub fn user_encrypted(&self) -> &[u8] ⓘ
pub fn permissions(&self) -> Permissions
pub fn permission_encrypted(&self) -> &[u8] ⓘ
pub fn decode<P>(document: &Document, password: P) -> Result<Self, Error>
pub fn encode(&self) -> Result<Dictionary, DecryptionError>
pub fn get_stream_filter(&self) -> Arc<dyn CryptFilter>
pub fn get_string_filter(&self) -> Arc<dyn CryptFilter>
Trait Implementations§
Source§impl Clone for EncryptionState
impl Clone for EncryptionState
Source§fn clone(&self) -> EncryptionState
fn clone(&self) -> EncryptionState
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 EncryptionState
impl Debug for EncryptionState
Source§impl Default for EncryptionState
impl Default for EncryptionState
Source§fn default() -> EncryptionState
fn default() -> EncryptionState
Returns the “default value” for a type. Read more
Source§impl TryFrom<EncryptionVersion<'_>> for EncryptionState
impl TryFrom<EncryptionVersion<'_>> for EncryptionState
Auto Trait Implementations§
impl Freeze for EncryptionState
impl !RefUnwindSafe for EncryptionState
impl Send for EncryptionState
impl Sync for EncryptionState
impl Unpin for EncryptionState
impl !UnwindSafe for EncryptionState
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