pub struct PointLogger {
pub logger: RootLogger,
pub point: Point,
pub mark: Point,
pub action: Option<CamelCase>,
}Fields§
§logger: RootLogger§point: Point§mark: Point§action: Option<CamelCase>Implementations§
Source§impl PointLogger
impl PointLogger
pub fn source(&self) -> LogSource
pub fn opt_span(&self, span: Option<LogSpan>) -> SpanLogger
pub fn for_span_async(&self, span: LogSpan) -> SpanLogger
pub fn for_span(&self, span: LogSpan) -> SpanLogger
pub fn span(&self) -> SpanLogger
pub fn span_async(&self) -> SpanLogger
pub fn spanner<S>(&self, spannable: &S) -> SpanLoggerwhere
S: Spannable,
pub fn point(&self, point: Point) -> PointLogger
pub fn push_point<S: ToString>(&self, segs: S) -> Result<PointLogger, SpaceErr>
pub fn pop_mark(&self) -> PointLogger
pub fn push_mark<S: ToString>(&self, segs: S) -> Result<PointLogger, SpaceErr>
pub fn push_action<A: ToString>( &self, action: A, ) -> Result<PointLogger, SpaceErr>
pub fn msg<M>(&self, level: Level, message: M)where
M: ToString,
pub fn handle(&self, log: LogSubstance)
pub fn trace<M>(&self, message: M)where
M: ToString,
pub fn debug<M>(&self, message: M)where
M: ToString,
pub fn info<M>(&self, message: M)where
M: ToString,
pub fn warn<M>(&self, message: M)where
M: ToString,
pub fn error<M>(&self, message: M)where
M: ToString,
pub fn result<R, E>(&self, result: Result<R, E>) -> Result<R, E>where
E: ToString,
pub fn eat<R, E>(&self, result: Result<R, E>)where
E: ToString,
pub fn result_ctx<R, E>(&self, ctx: &str, result: Result<R, E>) -> Result<R, E>where
E: ToString,
pub fn eat_ctx<R, E>(&self, ctx: &str, result: Result<R, E>)where
E: ToString,
pub fn track<T, F>(&self, trackable: &T, f: F)
pub fn track_msg<T, F, M, S>(&self, trackable: &T, f: F, m: M)
Trait Implementations§
Source§impl Clone for PointLogger
impl Clone for PointLogger
Source§fn clone(&self) -> PointLogger
fn clone(&self) -> PointLogger
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 moreAuto Trait Implementations§
impl Freeze for PointLogger
impl !RefUnwindSafe for PointLogger
impl Send for PointLogger
impl Sync for PointLogger
impl Unpin for PointLogger
impl !UnwindSafe for PointLogger
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more