Struct sequoia_octopus_librnp::dump_packets::dump::SessionKey
source · pub struct SessionKey {
pub session_key: SessionKey,
pub symmetric_algo: Option<SymmetricAlgorithm>,
}
Expand description
Holds a session key as parsed from the command line, with an optional algorithm specifier.
This struct does not implement Display
to prevent accidental leaking
of key material. If you are sure you want to print a session key, use
display_sensitive
.
Fields§
§session_key: SessionKey
§symmetric_algo: Option<SymmetricAlgorithm>
Implementations§
source§impl SessionKey
impl SessionKey
sourcepub fn display_sensitive(&self) -> SessionKeyDisplay<'_>
pub fn display_sensitive(&self) -> SessionKeyDisplay<'_>
Returns an object that implements Display for explicitly opting into
printing a SessionKey
.
Trait Implementations§
source§impl Clone for SessionKey
impl Clone for SessionKey
source§fn clone(&self) -> SessionKey
fn clone(&self) -> SessionKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SessionKey
impl RefUnwindSafe for SessionKey
impl Send for SessionKey
impl Sync for SessionKey
impl Unpin for SessionKey
impl UnwindSafe for SessionKey
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