pub struct InboundConnectionContext { /* private fields */ }Expand description
Principal- and transport-bound context for one inbound connection.
Adapters may expose this exactly once. The Orchestrator retains it until an authenticated owner consumes it or the connection terminates.
Implementations§
Source§impl InboundConnectionContext
impl InboundConnectionContext
pub fn new( connection_id: ConnectionId, transport: Transport, principal: &AuthenticatedPrincipal, routing_hint: Option<InboundRoutingHint>, metadata: InboundSignalingMetadata, ) -> Result<InboundConnectionContext, InboundContextError>
pub fn connection_id(&self) -> &ConnectionId
pub const fn transport(&self) -> Transport
pub fn routing_hint(&self) -> Option<&InboundRoutingHint>
Sourcepub fn take_routing_hint(&mut self) -> Option<InboundRoutingHint>
pub fn take_routing_hint(&mut self) -> Option<InboundRoutingHint>
Take the routing hint exactly once for an owning policy boundary. Untaken routing material is zeroized when this context is dropped.
pub fn metadata(&self) -> &InboundSignalingMetadata
pub fn is_bound_to( &self, connection_id: &ConnectionId, transport: Transport, principal: &AuthenticatedPrincipal, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InboundConnectionContext
impl RefUnwindSafe for InboundConnectionContext
impl Send for InboundConnectionContext
impl Sync for InboundConnectionContext
impl Unpin for InboundConnectionContext
impl UnsafeUnpin for InboundConnectionContext
impl UnwindSafe for InboundConnectionContext
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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