pub struct RepoKey(/* private fields */);Expand description
Thin wrapper for repository encryption keys (AES-256, 32 bytes).
Distinct from signing keys to prevent accidental misuse. Debug output is redacted for security. Does NOT serialize to avoid accidental key exposure — use explicit methods if serialization is needed.
Note: This type is NOT Copy because it implements Drop to zero out
memory when the key goes out of scope.
Implementations§
Trait Implementations§
impl Eq for RepoKey
impl StructuralPartialEq for RepoKey
Auto Trait Implementations§
impl Freeze for RepoKey
impl RefUnwindSafe for RepoKey
impl Send for RepoKey
impl Sync for RepoKey
impl Unpin for RepoKey
impl UnsafeUnpin for RepoKey
impl UnwindSafe for RepoKey
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