Struct WithContext
pub struct WithContext<'a, L>{ /* private fields */ }
Expand description
Implementations§
§impl<'a, L> WithContext<'a, L>
impl<'a, L> WithContext<'a, L>
pub fn from(
logger: &'a L,
peer_id: Option<PublicKey>,
channel_id: Option<ChannelId>,
payment_hash: Option<PaymentHash>,
) -> WithContext<'a, L>
pub fn from( logger: &'a L, peer_id: Option<PublicKey>, channel_id: Option<ChannelId>, payment_hash: Option<PaymentHash>, ) -> WithContext<'a, L>
Wraps the given logger, providing additional context to any logged records.
Trait Implementations§
Auto Trait Implementations§
impl<'a, L> Freeze for WithContext<'a, L>
impl<'a, L> RefUnwindSafe for WithContext<'a, L>where
L: RefUnwindSafe,
impl<'a, L> Send for WithContext<'a, L>where
L: Sync,
impl<'a, L> Sync for WithContext<'a, L>where
L: Sync,
impl<'a, L> Unpin for WithContext<'a, L>
impl<'a, L> UnwindSafe for WithContext<'a, L>where
L: RefUnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> ⓘ
Source§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>
Wrap the input message
T
in a tonic::Request
Source§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>
Wrap the input message
T
in a tonic::Request