pub struct KeyId([u8; 16]);Expand description
A key id is a unique identifier for a single key. There is a 1:1 mapping between key ID and key bytes, so something like a user key rotation is replacing the key with ID A with a new key with ID B.
Tuple Fields§
§0: [u8; 16]Implementations§
Source§impl KeyId
Fixed length identifiers for keys.
These are intended to be unique and constant per-key.
impl KeyId
Fixed length identifiers for keys. These are intended to be unique and constant per-key.
Currently these are randomly generated 16 byte identifiers, which is considered safe to randomly generate with vanishingly small collision chance. However, the generation of IDs is an internal concern and may change in the future.
Trait Implementations§
Source§impl ConstantTimeEq for KeyId
impl ConstantTimeEq for KeyId
Source§impl<UT> ConvertError<UT> for KeyId
impl<UT> ConvertError<UT> for KeyId
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl<'de> Deserialize<'de> for KeyId
impl<'de> Deserialize<'de> for KeyId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for KeyId
Key ids travel on the wire as a lowercase hex encoding of the 16 raw bytes, giving a fixed
32-character string. The server rejects any other encoding.
impl Display for KeyId
Key ids travel on the wire as a lowercase hex encoding of the 16 raw bytes, giving a fixed 32-character string. The server rejects any other encoding.
Source§impl<UT> FfiConverter<UT> for KeyId
impl<UT> FfiConverter<UT> for KeyId
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = <String as Lower<UniFfiTag>>::FfiType
type FfiType = <String as Lower<UniFfiTag>>::FfiType
Source§fn lower(obj: KeyId) -> Self::FfiType
fn lower(obj: KeyId) -> Self::FfiType
Source§fn try_lift(v: Self::FfiType) -> Result<KeyId>
fn try_lift(v: Self::FfiType) -> Result<KeyId>
Source§impl FromStr for KeyId
Parses the hex encoding produced by Display. Anything that is not exactly
16 bytes worth of hex is rejected.
impl FromStr for KeyId
Parses the hex encoding produced by Display. Anything that is not exactly
16 bytes worth of hex is rejected.
Source§impl FromWasmAbi for KeyId
Available on crate feature wasm only.
impl FromWasmAbi for KeyId
wasm only.Source§impl IntoWasmAbi for KeyId
Available on crate feature wasm only.
impl IntoWasmAbi for KeyId
wasm only.Source§impl<UT> LiftReturn<UT> for KeyId
impl<UT> LiftReturn<UT> for KeyId
Source§type ReturnType = <KeyId as Lift<UT>>::FfiType
type ReturnType = <KeyId as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> LowerError<UT> for KeyId
impl<UT> LowerError<UT> for KeyId
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for KeyId
impl<UT> LowerReturn<UT> for KeyId
Source§type ReturnType = <KeyId as Lower<UT>>::FfiType
type ReturnType = <KeyId as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl OptionFromWasmAbi for KeyId
Available on crate feature wasm only.
impl OptionFromWasmAbi for KeyId
wasm only.impl StructuralPartialEq for KeyId
Auto Trait Implementations§
impl Freeze for KeyId
impl RefUnwindSafe for KeyId
impl Send for KeyId
impl Sync for KeyId
impl Unpin for KeyId
impl UnsafeUnpin for KeyId
impl UnwindSafe for KeyId
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.