pub struct LogOps;Expand description
Log levels for different operations
Implementations§
Source§impl LogOps
impl LogOps
Sourcepub fn analysis_start(repo: &str, commits: usize)
pub fn analysis_start(repo: &str, commits: usize)
Log start of analysis
Sourcepub fn analysis_complete(repo: &str, patterns: usize, duration_ms: u64)
pub fn analysis_complete(repo: &str, patterns: usize, duration_ms: u64)
Log analysis completion
Sourcepub fn features_extracted(count: usize)
pub fn features_extracted(count: usize)
Log feature extraction
Sourcepub fn correlation_start(size: usize, backend: &str)
pub fn correlation_start(size: usize, backend: &str)
Log correlation computation
Sourcepub fn correlation_complete(result: f32, duration_us: u64)
pub fn correlation_complete(result: f32, duration_us: u64)
Log correlation result
Sourcepub fn training_start(model: &str, samples: usize)
pub fn training_start(model: &str, samples: usize)
Log ML training
Sourcepub fn training_complete(model: &str, accuracy: f32)
pub fn training_complete(model: &str, accuracy: f32)
Log ML training complete
Sourcepub fn prediction(model: &str, category: u8)
pub fn prediction(model: &str, category: u8)
Log prediction
Sourcepub fn clustering_start(k: usize, samples: usize)
pub fn clustering_start(k: usize, samples: usize)
Log clustering
Sourcepub fn clustering_complete(k: usize, inertia: f32)
pub fn clustering_complete(k: usize, inertia: f32)
Log clustering complete
Sourcepub fn storage_op(operation: &str, count: usize)
pub fn storage_op(operation: &str, count: usize)
Log storage operation
Sourcepub fn error_with_context(error: &impl Display, context: &str)
pub fn error_with_context(error: &impl Display, context: &str)
Log error with context
Auto Trait Implementations§
impl Freeze for LogOps
impl RefUnwindSafe for LogOps
impl Send for LogOps
impl Sync for LogOps
impl Unpin for LogOps
impl UnwindSafe for LogOps
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.