[−][src]Struct luks2::LuksJson
JSON metadata for the device as described here.
Fields
keyslots: HashMap<u8, LuksKeyslot>
Objects describing encrypted keys storage areas.
tokens: HashMap<u8, LuksToken>
Tokens can optionally include additional metadata. Only included for parsing compatibility.
segments: HashMap<u8, LuksSegment>
Segments describe areas on disk that contain user encrypted data.
digests: HashMap<u8, LuksDigest>
Digests are used to verify that keys decrypted from keyslots are correct. Uses the keys of keyslots and segments to reference them.
config: LuksConfig
Persistent header configuration attributes.
Implementations
impl LuksJson
[src]
pub fn read_from<R: Read>(mut reader: &mut R) -> Result<Self, ParseError>
[src]
Attempt to read a LUKS2 JSON area from a reader. The reader must contain exactly the JSON data and nothing more.
Trait Implementations
impl Debug for LuksJson
[src]
impl<'de> Deserialize<'de> for LuksJson
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<LuksJson> for LuksJson
[src]
impl Serialize for LuksJson
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for LuksJson
[src]
Auto Trait Implementations
impl RefUnwindSafe for LuksJson
[src]
impl Send for LuksJson
[src]
impl Sync for LuksJson
[src]
impl Unpin for LuksJson
[src]
impl UnwindSafe for LuksJson
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,