#[non_exhaustive]pub struct NewHandler<'a> {
pub user: &'a [u8],
pub owner: &'a [u8],
pub grant: Grant,
pub encrypt_metadata: bool,
}Expand description
What a new R6 handler is made from.
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: &'a [u8]The user (“open”) password, as typed; empty for none.
owner: &'a [u8]The owner (“permissions”) password, as typed. Empty is replaced by random bytes, since R6 needs a distinct owner entry.
grant: GrantWhat a user without the owner password may do.
encrypt_metadata: boolWhether the XMP metadata stream is encrypted (/EncryptMetadata).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for NewHandler<'a>
impl<'a> Clone for NewHandler<'a>
impl<'a> Copy for NewHandler<'a>
Auto Trait Implementations§
impl<'a> Forget for NewHandler<'a>
impl<'a> Freeze for NewHandler<'a>
impl<'a> Move for NewHandler<'a>
impl<'a> RefUnwindSafe for NewHandler<'a>
impl<'a> Send for NewHandler<'a>
impl<'a> Sync for NewHandler<'a>
impl<'a> Unpin for NewHandler<'a>
impl<'a> UnsafeUnpin for NewHandler<'a>where
&'a [u8]: UnsafeUnpin,
impl<'a> UnwindSafe for NewHandler<'a>where
&'a [u8]: 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