pub struct HeaderInjector;Implementations§
Source§impl HeaderInjector
impl HeaderInjector
pub fn inject_session_id( headers: &mut HeaderMap, session_id: &SessionId, ) -> Result<(), HeaderInjectionError>
pub fn inject_user_id( headers: &mut HeaderMap, user_id: &UserId, ) -> Result<(), HeaderInjectionError>
pub fn inject_trace_id( headers: &mut HeaderMap, trace_id: &TraceId, ) -> Result<(), HeaderInjectionError>
pub fn inject_context_id( headers: &mut HeaderMap, context_id: &ContextId, ) -> Result<(), HeaderInjectionError>
pub fn inject_gateway_conversation_id( headers: &mut HeaderMap, id: &GatewayConversationId, ) -> Result<(), HeaderInjectionError>
pub fn inject_provider_request_id( headers: &mut HeaderMap, id: &ProviderRequestId, ) -> Result<(), HeaderInjectionError>
pub fn inject_task_id( headers: &mut HeaderMap, task_id: &TaskId, ) -> Result<(), HeaderInjectionError>
pub fn inject_agent_name( headers: &mut HeaderMap, agent_name: &str, ) -> Result<(), HeaderInjectionError>
pub fn inject_from_request_context( headers: &mut HeaderMap, ctx: &RequestContext, ) -> Result<(), HeaderInjectionError>
Trait Implementations§
Source§impl Clone for HeaderInjector
impl Clone for HeaderInjector
Source§fn clone(&self) -> HeaderInjector
fn clone(&self) -> HeaderInjector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderInjector
impl Debug for HeaderInjector
impl Copy for HeaderInjector
Auto Trait Implementations§
impl Freeze for HeaderInjector
impl RefUnwindSafe for HeaderInjector
impl Send for HeaderInjector
impl Sync for HeaderInjector
impl Unpin for HeaderInjector
impl UnsafeUnpin for HeaderInjector
impl UnwindSafe for HeaderInjector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more