pub struct CallTracker { /* private fields */ }Expand description
correlates AMI events by UniqueID into complete call records
spawns a background task that consumes events from an EventSubscription, tracks active calls, and emits CompletedCall records when channels hang up.
Implementations§
Source§impl CallTracker
impl CallTracker
Sourcepub fn new(
subscription: EventSubscription<AmiEvent>,
) -> (Self, Receiver<CompletedCall>)
pub fn new( subscription: EventSubscription<AmiEvent>, ) -> (Self, Receiver<CompletedCall>)
create a tracker that consumes events and produces completed call records
Trait Implementations§
Source§impl Debug for CallTracker
impl Debug for CallTracker
Auto Trait Implementations§
impl Freeze for CallTracker
impl !RefUnwindSafe for CallTracker
impl Send for CallTracker
impl Sync for CallTracker
impl Unpin for CallTracker
impl UnsafeUnpin for CallTracker
impl !UnwindSafe for CallTracker
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