Struct session_log::Source
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)