pub struct KeyBlock(pub KeyFormatType, pub Option<KeyCompressionType>, pub Option<KeyValue>, pub Option<CryptographicAlgorithm>, pub Option<CryptographicLength>, pub Option<KeyWrappingData>);Expand description
See KMIP 1.0 section 2.1.3 Key Block.
Tuple Fields§
§0: KeyFormatType§1: Option<KeyCompressionType>§2: Option<KeyValue>§3: Option<CryptographicAlgorithm>§4: Option<CryptographicLength>§5: Option<KeyWrappingData>Implementations§
Source§impl KeyBlock
impl KeyBlock
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
impl Eq for KeyBlock
impl StructuralPartialEq for KeyBlock
Auto Trait Implementations§
impl Forget for KeyBlock
impl Freeze for KeyBlock
impl RefUnwindSafe for KeyBlock
impl Send for KeyBlock
impl Sync for KeyBlock
impl Unpin for KeyBlock
impl UnsafeUnpin for KeyBlock
impl UnwindSafe for KeyBlock
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