pub struct AuditService(pub Arc<dyn AuditSink>);Tuple Fields§
§0: Arc<dyn AuditSink>Implementations§
Source§impl AuditService
impl AuditService
pub fn new(sink: Arc<dyn AuditSink>) -> Self
pub async fn append(&self, event: AuditEvent) -> Result<(), AuditError>
Trait Implementations§
Source§impl Clone for AuditService
impl Clone for AuditService
Source§fn clone(&self) -> AuditService
fn clone(&self) -> AuditService
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 AuditService
impl !UnwindSafe for AuditService
impl Freeze for AuditService
impl Send for AuditService
impl Sync for AuditService
impl Unpin for AuditService
impl UnsafeUnpin for AuditService
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