Enum akd::directory::PublishCorruption
source · pub enum PublishCorruption {
UnmarkedStaleVersion(AkdLabel),
MarkVersionStale(AkdLabel, u64),
}
Expand description
Helpers for testing This enum is meant to insert corruptions into a malicious publish function.
Variants§
UnmarkedStaleVersion(AkdLabel)
Indicates to the malicious publish function to not mark a stale version
MarkVersionStale(AkdLabel, u64)
Indicates to the malicious publish to mark a certain version for a username as stale.
Trait Implementations§
source§impl Clone for PublishCorruption
impl Clone for PublishCorruption
source§fn clone(&self) -> PublishCorruption
fn clone(&self) -> PublishCorruption
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 RefUnwindSafe for PublishCorruption
impl Send for PublishCorruption
impl Sync for PublishCorruption
impl Unpin for PublishCorruption
impl UnwindSafe for PublishCorruption
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