#[non_exhaustive]pub struct Handler {
pub user: [u8; 48],
pub user_encryption: [u8; 32],
pub owner: [u8; 48],
pub owner_encryption: [u8; 32],
pub perms: [u8; 16],
pub permissions: u32,
pub encrypt_metadata: bool,
pub key: FileKey,
pub owner_generated: bool,
/* private fields */
}Expand description
A written R6 handler: the /Encrypt entries and the file key.
Added in 0.7.0.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user: [u8; 48]/U: 32-byte hash ‖ validation salt ‖ key salt.
user_encryption: [u8; 32]/UE.
owner: [u8; 48]/O.
owner_encryption: [u8; 32]/OE.
perms: [u8; 16]/Perms.
permissions: u32/P.
encrypt_metadata: bool/EncryptMetadata.
key: FileKeyThe file key (never printed).
owner_generated: boolTrue when the owner password was empty and a random one was made: the caller tells the
user to keep Handler::generated_owner, since nothing else can unlock the file.
Implementations§
Trait Implementations§
impl Eq for Handler
impl StructuralPartialEq for Handler
Auto Trait Implementations§
impl Forget for Handler
impl Freeze for Handler
impl Move for Handler
impl RefUnwindSafe for Handler
impl Send for Handlerwhere
RawVecInner: Send,
impl Sync for Handlerwhere
RawVecInner: Sync,
impl Unpin for Handler
impl UnsafeUnpin for Handler
impl UnwindSafe for Handlerwhere
RawVecInner: UnwindSafe,
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