Struct logid_core::log_id::LogId
source · pub struct LogId { /* private fields */ }Implementations§
source§impl LogId
impl LogId
pub fn new( crate_name: &'static str, module_path: &'static str, identifier: &'static str, log_level: LogLevel ) -> Self
pub fn get_crate_name(&self) -> &'static str
pub fn get_module_path(&self) -> &'static str
pub fn get_identifier(&self) -> &'static str
pub fn get_log_level(&self) -> LogLevel
Trait Implementations§
source§impl EventEntry<LogId> for LogEventEntry
impl EventEntry<LogId> for LogEventEntry
source§impl From<IntermediaryLogEvent> for LogId
impl From<IntermediaryLogEvent> for LogId
source§fn from(intermed_event: IntermediaryLogEvent) -> Self
fn from(intermed_event: IntermediaryLogEvent) -> Self
Converts to this type from the input type.
source§impl IntermediaryEvent<LogId, LogEventEntry> for IntermediaryLogEvent
impl IntermediaryEvent<LogId, LogEventEntry> for IntermediaryLogEvent
fn new(event_id: LogId, msg: &str, origin: Origin) -> Self
fn get_entry(&self) -> &LogEventEntry
fn take_entry(&mut self) -> LogEventEntry
source§fn get_event_id(&self) -> &K
fn get_event_id(&self) -> &K
Returns the
Id of this eventsource§fn get_crate_name(&self) -> &'static str
fn get_crate_name(&self) -> &'static str
Returns the name of the associated crate of this event
source§fn finalize(self) -> FinalizedEvent<K>
fn finalize(self) -> FinalizedEvent<K>
Finalizing the event sends it to the publisher, and returns the
FinalizedEvent.
This struct includes the Id used to set the event, and the id of the specific EventEntry
associated with this event. Read morefn into_event_id(self) -> K
source§impl PartialEq<LogId> for LogId
impl PartialEq<LogId> for LogId
impl Copy for LogId
impl Eq for LogId
impl Id for LogId
impl StructuralEq for LogId
impl StructuralPartialEq for LogId
Auto Trait Implementations§
impl RefUnwindSafe for LogId
impl Send for LogId
impl Sync for LogId
impl Unpin for LogId
impl UnwindSafe for LogId
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