Struct PacketSubscription
pub struct PacketSubscription {
pub source_kind: Option<RuntimePacketSourceKind>,
pub transport: Option<RuntimePacketTransport>,
pub event_class: Option<RuntimePacketEventClass>,
pub local_addr: Option<SocketAddr>,
pub local_port: Option<u16>,
pub remote_addr: Option<SocketAddr>,
pub remote_port: Option<u16>,
pub owner_extension: Option<String>,
pub resource_id: Option<String>,
pub shared_tag: Option<String>,
pub websocket_frame_type: Option<RuntimeWebSocketFrameType>,
}Expand description
Immutable packet subscription filter declared in extension startup manifest.
Fields§
§source_kind: Option<RuntimePacketSourceKind>Match on source kind.
transport: Option<RuntimePacketTransport>Match on transport category.
event_class: Option<RuntimePacketEventClass>Match on event class.
local_addr: Option<SocketAddr>Match on local endpoint exactly.
local_port: Option<u16>Match on local port.
remote_addr: Option<SocketAddr>Match on remote endpoint exactly.
remote_port: Option<u16>Match on remote port.
owner_extension: Option<String>Match on owning extension name.
resource_id: Option<String>Match on extension resource id.
Match on shared stream tag.
websocket_frame_type: Option<RuntimeWebSocketFrameType>Match on WebSocket frame type.
Implementations§
§impl PacketSubscription
impl PacketSubscription
pub fn matches(&self, event: &RuntimePacketEvent) -> bool
pub fn matches(&self, event: &RuntimePacketEvent) -> bool
Returns true when this subscription matches the provided runtime packet event.
Trait Implementations§
§impl Clone for PacketSubscription
impl Clone for PacketSubscription
§fn clone(&self) -> PacketSubscription
fn clone(&self) -> PacketSubscription
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 more§impl Debug for PacketSubscription
impl Debug for PacketSubscription
§impl Default for PacketSubscription
impl Default for PacketSubscription
§fn default() -> PacketSubscription
fn default() -> PacketSubscription
Returns the “default value” for a type. Read more
§impl PartialEq for PacketSubscription
impl PartialEq for PacketSubscription
impl Eq for PacketSubscription
impl StructuralPartialEq for PacketSubscription
Auto Trait Implementations§
impl Freeze for PacketSubscription
impl RefUnwindSafe for PacketSubscription
impl Send for PacketSubscription
impl Sync for PacketSubscription
impl Unpin for PacketSubscription
impl UnsafeUnpin for PacketSubscription
impl UnwindSafe for PacketSubscription
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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