Struct Record
pub struct Record<'a> {
pub level: Level,
pub peer_id: Option<PublicKey>,
pub channel_id: Option<ChannelId>,
pub args: Arguments<'a>,
pub module_path: &'static str,
pub file: &'static str,
pub line: u32,
pub payment_hash: Option<PaymentHash>,
}
Expand description
A Record, unit of logging output with Metadata to enable filtering Module_path, file, line to inform on log’s source
Fields§
§level: Level
The verbosity level of the message.
peer_id: Option<PublicKey>
The node id of the peer pertaining to the logged record.
Note that in some cases a Self::channel_id
may be filled in but this may still be
None
, depending on if the peer information is readily available in LDK when the log is
generated.
channel_id: Option<ChannelId>
The channel id of the channel pertaining to the logged record. May be a temporary id before the channel has been funded.
args: Arguments<'a>
The message body.
module_path: &'static str
The module path of the message.
file: &'static str
The source file containing the message.
line: u32
The line containing the message.
payment_hash: Option<PaymentHash>
The payment hash.
Note that this is only filled in for logs pertaining to a specific payment, and will be
None
for logs which are not directly related to a payment.
Implementations§
§impl<'a> Record<'a>
impl<'a> Record<'a>
pub fn new(
level: Level,
peer_id: Option<PublicKey>,
channel_id: Option<ChannelId>,
args: Arguments<'a>,
module_path: &'static str,
file: &'static str,
line: u32,
payment_hash: Option<PaymentHash>,
) -> Record<'a>
pub fn new( level: Level, peer_id: Option<PublicKey>, channel_id: Option<ChannelId>, args: Arguments<'a>, module_path: &'static str, file: &'static str, line: u32, payment_hash: Option<PaymentHash>, ) -> Record<'a>
Returns a new Record.
This is not exported to bindings users as fmt can’t be used in C
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> !Send for Record<'a>
impl<'a> !Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
T
in a tonic::Request