pub struct QuicStream {
pub five_tuple: FiveTuple,
pub data: QuicConn,
}Expand description
A parsed QUIC stream and connection metadata.
Fields§
§five_tuple: FiveTuple§data: QuicConnImplementations§
Source§impl QuicStream
impl QuicStream
Sourcepub fn client(&self) -> SocketAddr
pub fn client(&self) -> SocketAddr
Returns the QUIC client’s socket address.
Sourcepub fn server(&self) -> SocketAddr
pub fn server(&self) -> SocketAddr
Returns the QUIC server’s socket address.
Trait Implementations§
Source§impl Debug for QuicStream
impl Debug for QuicStream
Source§impl Serialize for QuicStream
impl Serialize for QuicStream
Source§impl Subscribable for QuicStream
impl Subscribable for QuicStream
type Tracked = TrackedQuic
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 QuicStream
impl RefUnwindSafe for QuicStream
impl Send for QuicStream
impl Sync for QuicStream
impl Unpin for QuicStream
impl UnsafeUnpin for QuicStream
impl UnwindSafe for QuicStream
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> 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