pub struct BuildEventLog { /* private fields */ }Expand description
A log of BuildNotifications for a build session.
Implementations§
Source§impl BuildEventLog
impl BuildEventLog
Sourcepub fn push(&mut self, event: BuildNotification)
pub fn push(&mut self, event: BuildNotification)
Append a notification.
Sourcepub fn count_by_label(&self, label: &str) -> usize
pub fn count_by_label(&self, label: &str) -> usize
Count events with the given label.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether any error events were recorded.
Trait Implementations§
Source§impl Clone for BuildEventLog
impl Clone for BuildEventLog
Source§fn clone(&self) -> BuildEventLog
fn clone(&self) -> BuildEventLog
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 BuildEventLog
impl Debug for BuildEventLog
Source§impl Default for BuildEventLog
impl Default for BuildEventLog
Source§fn default() -> BuildEventLog
fn default() -> BuildEventLog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuildEventLog
impl RefUnwindSafe for BuildEventLog
impl Send for BuildEventLog
impl Sync for BuildEventLog
impl Unpin for BuildEventLog
impl UnsafeUnpin for BuildEventLog
impl UnwindSafe for BuildEventLog
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