pub struct TrackerEvent {
pub layer: u8,
pub flags1: u8,
pub event_id: u32,
pub event_time: u64,
pub hits: Vec<TrackerHit>,
}
Fields§
§layer: u8
§flags1: u8
§event_id: u32
§event_time: u64
§hits: Vec<TrackerHit>
Implementations§
Source§impl TrackerEvent
impl TrackerEvent
pub fn new() -> Self
Sourcepub fn filter_hits(&self, filter: fn(_: &TrackerHit) -> bool) -> Vec<TrackerHit>
pub fn filter_hits(&self, filter: fn(_: &TrackerHit) -> bool) -> Vec<TrackerHit>
Loop over the filtered hits, returning only those satisfying a condition
§Arguments:
- filter : filter function - take input hit and decide if it should be returned
pub fn from_bytestream( stream: &Vec<u8>, pos: &mut usize, ) -> Result<Self, SerializationError>
Trait Implementations§
Source§impl Clone for TrackerEvent
impl Clone for TrackerEvent
Source§fn clone(&self) -> TrackerEvent
fn clone(&self) -> TrackerEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrackerEvent
impl Debug for TrackerEvent
Auto Trait Implementations§
impl Freeze for TrackerEvent
impl RefUnwindSafe for TrackerEvent
impl Send for TrackerEvent
impl Sync for TrackerEvent
impl Unpin for TrackerEvent
impl UnwindSafe for TrackerEvent
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§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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more