pub struct IntermediaryLogEvent { /* private fields */ }Expand description
Struct linking a LogId to the map the entry for the ID was added to.
Implementations§
Source§impl IntermediaryLogEvent
impl IntermediaryLogEvent
Sourcepub fn get_event_id(&self) -> LogId
pub fn get_event_id(&self) -> LogId
Returns the LogId of this log-id event
Sourcepub fn get_entry(&self) -> &LogEventEntry
pub fn get_entry(&self) -> &LogEventEntry
Returns the [Entry] of this log-id event
pub fn add_addon(self, kind: AddonKind) -> Self
Source§impl IntermediaryLogEvent
impl IntermediaryLogEvent
pub fn finalize(self) -> FinalizedEvent<LogId>
Trait Implementations§
Source§impl Clone for IntermediaryLogEvent
impl Clone for IntermediaryLogEvent
Source§fn clone(&self) -> IntermediaryLogEvent
fn clone(&self) -> IntermediaryLogEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 IntermediaryLogEvent
impl Debug for IntermediaryLogEvent
Source§impl Default for IntermediaryLogEvent
impl Default for IntermediaryLogEvent
Source§fn default() -> IntermediaryLogEvent
fn default() -> IntermediaryLogEvent
Returns the “default value” for a type. Read more
Source§impl Drop for IntermediaryLogEvent
impl Drop for IntermediaryLogEvent
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, LogMsg, LogEventEntry> for IntermediaryLogEvent
impl IntermediaryEvent<LogId, LogMsg, LogEventEntry> for IntermediaryLogEvent
Source§fn new(event_id: LogId, msg: Option<impl Into<LogMsg>>, origin: Origin) -> Self
fn new(event_id: LogId, msg: Option<impl Into<LogMsg>>, origin: Origin) -> Self
Create a new
IntermediaryEvent. Read moreSource§fn get_entry(&self) -> &LogEventEntry
fn get_entry(&self) -> &LogEventEntry
Returns the
EventEntry that was created by this IntermediaryEvent.Source§fn take_entry(&mut self) -> LogEventEntry
fn take_entry(&mut self) -> LogEventEntry
Takes the
EventEntry that was created by this IntermediaryEvent.Source§fn get_event_id(&self) -> &K
fn get_event_id(&self) -> &K
Returns the
Id of this eventSource§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 moreSource§fn into_event_id(self) -> K
fn into_event_id(self) -> K
Converts this
IntermediaryEvent into the related event Id.Source§impl PartialEq for IntermediaryLogEvent
impl PartialEq for IntermediaryLogEvent
impl Eq for IntermediaryLogEvent
impl StructuralPartialEq for IntermediaryLogEvent
Auto Trait Implementations§
impl Freeze for IntermediaryLogEvent
impl RefUnwindSafe for IntermediaryLogEvent
impl Send for IntermediaryLogEvent
impl Sync for IntermediaryLogEvent
impl Unpin for IntermediaryLogEvent
impl UnwindSafe for IntermediaryLogEvent
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