pub struct FileWrap<K = Key> { /* private fields */ }Expand description
The master key file’s backend: the master key is the root, and tenant
keys are wrapped under it locally. It holds the key, or borrows it
(K is &Key) for a rotation that has the key already. Debug shows
only the key’s id.
Implementations§
Trait Implementations§
Source§impl<K: Borrow<Key> + Send + Sync + Debug> KeyWrap for FileWrap<K>
impl<K: Borrow<Key> + Send + Sync + Debug> KeyWrap for FileWrap<K>
Source§fn key_id(&self) -> KeyId
fn key_id(&self) -> KeyId
The id of the key that wraps tenant keys. The registry counts each
wrap against it, and a key rotation records when its use began.
Source§fn root(&self) -> &Key
fn root(&self) -> &Key
The root of the hierarchy: the key the server catalog key is derived
from (
envelope::catalog_key).Auto Trait Implementations§
impl<K> Forget for FileWrap<K>
impl<K> Freeze for FileWrap<K>where
K: Freeze,
impl<K> Move for FileWrap<K>
impl<K> RefUnwindSafe for FileWrap<K>where
K: RefUnwindSafe,
impl<K> Send for FileWrap<K>where
K: Send,
impl<K> Sync for FileWrap<K>where
K: Sync,
impl<K> Unpin for FileWrap<K>where
K: Unpin,
impl<K> UnsafeUnpin for FileWrap<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for FileWrap<K>where
K: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.