pub struct ParticipantConnectionContext { /* private fields */ }Expand description
Connection-scoped authority facts supplied to participant semantics.
Implementations§
Source§impl ParticipantConnectionContext
impl ParticipantConnectionContext
Sourcepub const fn new(
connection_incarnation: ConnectionIncarnation,
mount: MountKind,
) -> Self
pub const fn new( connection_incarnation: ConnectionIncarnation, mount: MountKind, ) -> Self
Captures the durably allocated incarnation of the receiving connection and the mount its admitting door stamped.
Both arguments are server facts. mount in particular is supplied by
the spawn path from its own knowledge of which door it is (design §10);
it is a required argument rather than a defaulted field precisely so a
new transport cannot acquire a mount attestation by forgetting to say
which one it is.
Sourcepub const fn connection_incarnation(self) -> ConnectionIncarnation
pub const fn connection_incarnation(self) -> ConnectionIncarnation
Returns the durably allocated receiving-connection incarnation.
Sourcepub const fn mount(self) -> MountKind
pub const fn mount(self) -> MountKind
Returns the mount the admitting door stamped on this connection.
This is the mount attestation the consumer’s door reads before stamping its own append. Nothing a client sends can move it: the value was fixed by the spawn path before the connection’s first inbound byte was read.
Trait Implementations§
Source§impl Clone for ParticipantConnectionContext
impl Clone for ParticipantConnectionContext
Source§fn clone(&self) -> ParticipantConnectionContext
fn clone(&self) -> ParticipantConnectionContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ParticipantConnectionContext
Source§impl Debug for ParticipantConnectionContext
impl Debug for ParticipantConnectionContext
impl Eq for ParticipantConnectionContext
impl StructuralPartialEq for ParticipantConnectionContext
Auto Trait Implementations§
impl Freeze for ParticipantConnectionContext
impl RefUnwindSafe for ParticipantConnectionContext
impl Send for ParticipantConnectionContext
impl Sync for ParticipantConnectionContext
impl Unpin for ParticipantConnectionContext
impl UnsafeUnpin for ParticipantConnectionContext
impl UnwindSafe for ParticipantConnectionContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.