pub struct CallbackTimer<T>where
T: Tracked,{ /* private fields */ }
Expand description
Callback timer wrapper
Implementations§
Source§impl<T> CallbackTimer<T>where
T: Tracked,
impl<T> CallbackTimer<T>where
T: Tracked,
Sourcepub fn new(counter_type: Streaming, first_pkt: &L4Pdu) -> Self
pub fn new(counter_type: Streaming, first_pkt: &L4Pdu) -> Self
Create a new CallbackTimer with the given counter type and data.
pub fn update(&mut self, pdu: &L4Pdu, reassembled: bool)
pub fn stream_protocols() -> Vec<&'static str>
pub fn unsubscribe(&mut self)
pub fn matched(&mut self)
Auto Trait Implementations§
impl<T> Freeze for CallbackTimer<T>where
T: Freeze,
impl<T> RefUnwindSafe for CallbackTimer<T>where
T: RefUnwindSafe,
impl<T> Send for CallbackTimer<T>where
T: Send,
impl<T> Sync for CallbackTimer<T>where
T: Sync,
impl<T> Unpin for CallbackTimer<T>where
T: Unpin,
impl<T> UnwindSafe for CallbackTimer<T>where
T: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more