#[non_exhaustive]pub enum EncryptedRefusal {
Rc4NotAllowed,
PermissionDenied,
}Expand description
The cause of an editing verb’s encryption refusal (every verb’s
DocumentEncrypted / Encrypted error variant).
Each cause has one remedy: Rc4NotAllowed lifts
when the session allows edits under RC4
(Document::set_rc4_append
with Rc4Append::Preserve);
PermissionDenied lifts only when the document
is opened with its owner password.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rc4NotAllowed
The password grants the edit, but the document uses RC4 and the session has not allowed saving under it (decision 190).
PermissionDenied
The password that opened the document does not grant the permission
the edit needs (ISO 32000-2 Table 22).
DocumentEncryption::edit_refusal reports it in preference to
Rc4NotAllowed when both apply, because
allowing RC4 alone would not let the edit through.
Trait Implementations§
Source§impl Clone for EncryptedRefusal
impl Clone for EncryptedRefusal
impl Copy for EncryptedRefusal
Source§impl Debug for EncryptedRefusal
impl Debug for EncryptedRefusal
impl Eq for EncryptedRefusal
Source§impl Hash for EncryptedRefusal
impl Hash for EncryptedRefusal
Source§impl PartialEq for EncryptedRefusal
impl PartialEq for EncryptedRefusal
impl StructuralPartialEq for EncryptedRefusal
Auto Trait Implementations§
impl Forget for EncryptedRefusal
impl Freeze for EncryptedRefusal
impl RefUnwindSafe for EncryptedRefusal
impl Send for EncryptedRefusal
impl Sync for EncryptedRefusal
impl Unpin for EncryptedRefusal
impl UnsafeUnpin for EncryptedRefusal
impl UnwindSafe for EncryptedRefusal
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