pub struct FscryptDirInfo {
pub wrapping_key_id: WrappingKeyId,
pub flags: FscryptPolicyFlags,
}Expand description
Fscrypt policy metadata persisted in DirType for encrypted directories.
Fields§
§wrapping_key_id: WrappingKeyId§flags: FscryptPolicyFlagsImplementations§
Source§impl FscryptDirInfo
impl FscryptDirInfo
pub fn new( wrapping_key_id: WrappingKeyId, flags: impl Into<FscryptPolicyFlags>, ) -> Self
Trait Implementations§
Source§impl Clone for FscryptDirInfo
impl Clone for FscryptDirInfo
Source§fn clone(&self) -> FscryptDirInfo
fn clone(&self) -> FscryptDirInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FscryptDirInfo
Source§impl Debug for FscryptDirInfo
impl Debug for FscryptDirInfo
Source§impl Default for FscryptDirInfo
impl Default for FscryptDirInfo
Source§fn default() -> FscryptDirInfo
fn default() -> FscryptDirInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FscryptDirInfo
impl<'de> Deserialize<'de> for FscryptDirInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FscryptDirInfo
Source§impl From<FscryptDirInfo> for FscryptPolicy
impl From<FscryptDirInfo> for FscryptPolicy
Source§fn from(info: FscryptDirInfo) -> Self
fn from(info: FscryptDirInfo) -> Self
Converts to this type from the input type.
Source§impl From<FscryptPolicy> for FscryptDirInfo
impl From<FscryptPolicy> for FscryptDirInfo
Source§impl From<[u8; 16]> for FscryptDirInfo
Prior to Fxfs v59, DirType only persisted the 16-byte WrappingKeyId, and all fscrypt
directories implicitly used 16-byte filename padding (PAD_16). When migrating legacy records
or constructing FscryptDirInfo from a bare WrappingKeyId, default to
FscryptPolicyFlags::PAD_16.
impl From<[u8; 16]> for FscryptDirInfo
Prior to Fxfs v59, DirType only persisted the 16-byte WrappingKeyId, and all fscrypt
directories implicitly used 16-byte filename padding (PAD_16). When migrating legacy records
or constructing FscryptDirInfo from a bare WrappingKeyId, default to
FscryptPolicyFlags::PAD_16.
Source§fn from(wrapping_key_id: WrappingKeyId) -> Self
fn from(wrapping_key_id: WrappingKeyId) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FscryptDirInfo
impl PartialEq for FscryptDirInfo
Source§impl Serialize for FscryptDirInfo
impl Serialize for FscryptDirInfo
impl StructuralPartialEq for FscryptDirInfo
Source§impl TypeFingerprint for FscryptDirInfo
impl TypeFingerprint for FscryptDirInfo
fn fingerprint() -> String
Auto Trait Implementations§
impl Freeze for FscryptDirInfo
impl RefUnwindSafe for FscryptDirInfo
impl Send for FscryptDirInfo
impl Sync for FscryptDirInfo
impl Unpin for FscryptDirInfo
impl UnsafeUnpin for FscryptDirInfo
impl UnwindSafe for FscryptDirInfo
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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