pub struct BootstrapCallMetadata { /* private fields */ }Expand description
Checked metadata available only to loopback bootstrap capability creation.
Implementations§
Source§impl BootstrapCallMetadata
impl BootstrapCallMetadata
Sourcepub const fn new(credential: BootstrapCredential) -> Self
pub const fn new(credential: BootstrapCredential) -> Self
Constructs metadata carrying exactly one bootstrap credential.
Sourcepub fn with_trace_parent(self, trace_parent: TraceParent) -> Self
pub fn with_trace_parent(self, trace_parent: TraceParent) -> Self
Adds bounded trace propagation to the bootstrap call.
Sourcepub fn with_database(self, database: DatabaseAlias) -> Self
pub fn with_database(self, database: DatabaseAlias) -> Self
Binds the loopback bootstrap request to one canonical database.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BootstrapCallMetadata
impl RefUnwindSafe for BootstrapCallMetadata
impl Send for BootstrapCallMetadata
impl Sync for BootstrapCallMetadata
impl Unpin for BootstrapCallMetadata
impl UnsafeUnpin for BootstrapCallMetadata
impl UnwindSafe for BootstrapCallMetadata
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<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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].