pub struct ConnectionFrame {
pub five_tuple: FiveTuple,
pub data: Vec<u8>,
}Expand description
Ethernet frames in a TCP or UDP connection.
Fields§
§five_tuple: FiveTuple§data: Vec<u8>Implementations§
Source§impl ConnectionFrame
impl ConnectionFrame
Sourcepub fn client(&self) -> SocketAddr
pub fn client(&self) -> SocketAddr
Returns the associated connection originator’s socket address.
Sourcepub fn server(&self) -> SocketAddr
pub fn server(&self) -> SocketAddr
Returns the associated connection responder’s socket address.
Trait Implementations§
Source§impl Clone for ConnectionFrame
impl Clone for ConnectionFrame
Source§fn clone(&self) -> ConnectionFrame
fn clone(&self) -> ConnectionFrame
Returns a duplicate 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 ConnectionFrame
impl Debug for ConnectionFrame
Source§impl Subscribable for ConnectionFrame
impl Subscribable for ConnectionFrame
type Tracked = TrackedConnectionFrame
Source§fn parsers() -> Vec<ConnParser>
fn parsers() -> Vec<ConnParser>
Returns a list of protocol parsers required to parse the subscribable type.
Source§fn process_packet(
mbuf: Mbuf,
subscription: &Subscription<'_, Self>,
conn_tracker: &mut ConnTracker<Self::Tracked>,
)
fn process_packet( mbuf: Mbuf, subscription: &Subscription<'_, Self>, conn_tracker: &mut ConnTracker<Self::Tracked>, )
Process a single incoming packet.
Auto Trait Implementations§
impl Freeze for ConnectionFrame
impl RefUnwindSafe for ConnectionFrame
impl Send for ConnectionFrame
impl Sync for ConnectionFrame
impl Unpin for ConnectionFrame
impl UnsafeUnpin for ConnectionFrame
impl UnwindSafe for ConnectionFrame
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 more