pub struct SessionLogger { /* private fields */ }Implementations§
Source§impl SessionLogger
impl SessionLogger
pub fn maybe_new(enabled: bool) -> Result<Option<Self>>
pub fn root(&self) -> &Path
pub fn child(&self, relative_path: impl AsRef<Path>) -> SessionWriter
pub async fn write_aggregation(&self, record: &AggregationRecord) -> Result<()>
pub async fn write_attribution(&self, record: &SessionAttribution) -> Result<()>
Trait Implementations§
Source§impl Clone for SessionLogger
impl Clone for SessionLogger
Source§fn clone(&self) -> SessionLogger
fn clone(&self) -> SessionLogger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for SessionLogger
impl !UnwindSafe for SessionLogger
impl Freeze for SessionLogger
impl Send for SessionLogger
impl Sync for SessionLogger
impl Unpin for SessionLogger
impl UnsafeUnpin for SessionLogger
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