pub struct Routed<'a> {
pub backend: &'a dyn Backend,
pub entry: &'a KeyEntry,
pub backend_ref: &'a BackendRef,
pub engine: Engine,
}Expand description
A resolved route: the Backend instance plus the key’s catalog metadata.
Borrows the BackendManager; the path is the backend-native locator the
op is dispatched against (transit key name / KV path), and engine is the
effective engine (inferred from class when the catalog omits it, §2.2).
Fields§
§backend: &'a dyn BackendThe backend instance this key routes to.
entry: &'a KeyEntryThe key’s catalog entry (class, key_type, path, …).
backend_ref: &'a BackendRefThe backend catalog declaration this key routes through.
engine: EngineThe effective sub-engine (catalog value, or inferred from class).
Implementations§
Source§impl Routed<'_>
impl Routed<'_>
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
The backend-native locator (transit key name / KV path) for this key.
Sourcepub fn public_path(&self) -> Option<&str>
pub fn public_path(&self) -> Option<&str>
The KV path holding this key’s public half, when it is a
materialize-to-use key whose public is provisioned out of band (basil-o86).
None for every key that uses its backend in place.
Sourcepub const fn key_type(&self) -> Option<KeyAlgorithm>
pub const fn key_type(&self) -> Option<KeyAlgorithm>
The key’s crypto algorithm, if any (absent for value keys).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Routed<'a>
impl<'a> !UnwindSafe for Routed<'a>
impl<'a> Freeze for Routed<'a>
impl<'a> Send for Routed<'a>
impl<'a> Sync for Routed<'a>
impl<'a> Unpin for Routed<'a>
impl<'a> UnsafeUnpin for Routed<'a>
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
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request