pub struct PHashSalt(/* private fields */);Expand description
Perceptual hash of the container image, used as the Argon2id salt.
The bytes are wiped when the value is dropped. Like MasterKey, the type
implements neither Clone, Copy nor Debug: the salt is not a
secret in the sense a key is, but it is a deterministic function of the
container, and leaking it into a log would let an attacker confirm which
image a given payload belongs to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PHashSalt
impl RefUnwindSafe for PHashSalt
impl Send for PHashSalt
impl Sync for PHashSalt
impl Unpin for PHashSalt
impl UnsafeUnpin for PHashSalt
impl UnwindSafe for PHashSalt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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