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<EncryptionState, 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 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 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
Source§fn try_from(
version: EncryptionVersion<'_>,
) -> Result<EncryptionState, <EncryptionState as TryFrom<EncryptionVersion<'_>>>::Error>
fn try_from( version: EncryptionVersion<'_>, ) -> Result<EncryptionState, <EncryptionState as TryFrom<EncryptionVersion<'_>>>::Error>
Performs the conversion.
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