pub struct Source(/* private fields */);Expand description
Source type is used to store the absolute path of the source logger. A source must be started with logger, and can have any number layers of session. This type cannot be constructed outside of the library.
Implementations§
Source§impl Source
impl Source
Sourcepub fn is_from_logger(&self) -> bool
pub fn is_from_logger(&self) -> bool
Checks if the source is from the logger.
Sourcepub fn is_from_session(&self) -> bool
pub fn is_from_session(&self) -> bool
Checks if the source is from the session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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