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,
}
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>
Available on non-
c_bindings
only.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.
Implementations§
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§
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