Struct RuntimePacketSource
pub struct RuntimePacketSource {
pub kind: RuntimePacketSourceKind,
pub transport: RuntimePacketTransport,
pub event_class: RuntimePacketEventClass,
pub owner_extension: Option<String>,
pub resource_id: Option<String>,
pub shared_tag: Option<String>,
pub websocket_frame_type: Option<RuntimeWebSocketFrameType>,
pub local_addr: Option<SocketAddr>,
pub remote_addr: Option<SocketAddr>,
}Expand description
Packet source metadata shared across runtime extension dispatch.
Fields§
§kind: RuntimePacketSourceKindSource category.
transport: RuntimePacketTransportTransport category.
event_class: RuntimePacketEventClassEvent class.
owner_extension: Option<String>Owning extension name for extension resource events.
resource_id: Option<String>Owning extension resource identifier.
Shared stream tag when stream visibility is shared.
websocket_frame_type: Option<RuntimeWebSocketFrameType>WebSocket frame type when transport is WebSocket.
local_addr: Option<SocketAddr>Local socket address where available.
remote_addr: Option<SocketAddr>Remote socket address where available.
Trait Implementations§
§impl Clone for RuntimePacketSource
impl Clone for RuntimePacketSource
§fn clone(&self) -> RuntimePacketSource
fn clone(&self) -> RuntimePacketSource
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 RuntimePacketSource
impl Debug for RuntimePacketSource
§impl PartialEq for RuntimePacketSource
impl PartialEq for RuntimePacketSource
impl Eq for RuntimePacketSource
impl StructuralPartialEq for RuntimePacketSource
Auto Trait Implementations§
impl Freeze for RuntimePacketSource
impl RefUnwindSafe for RuntimePacketSource
impl Send for RuntimePacketSource
impl Sync for RuntimePacketSource
impl Unpin for RuntimePacketSource
impl UnsafeUnpin for RuntimePacketSource
impl UnwindSafe for RuntimePacketSource
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