pub enum MountKind {
Tcp,
WebSocket,
Loopback,
}Expand description
Which transport door admitted a connection.
Stamped by the server at spawn and carried on both the connection registry record and the participant handler context.
Variants§
Tcp
Admitted by the TCP listener’s accept loop.
WebSocket
Admitted by the WebSocket acceptor, after a completed HTTP upgrade.
Loopback
Admitted in-process over a loopback duplex, with no socket and no listener. Trusted code: a co-resident caller reaches the host’s heap, its descriptors, and its store handle without ever calling the loopback, so this fact says the append came through the same record path a socket append comes through — never that its author was contained.
Implementations§
Source§impl MountKind
impl MountKind
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
A stable lowercase name for logs and diagnostics.
Diagnostics only. Nothing in the protocol carries this string, and
nothing parses it back into a MountKind — a mount fact that could be
round-tripped through text is a mount fact a client could eventually
supply.
Trait Implementations§
impl Copy for MountKind
Source§impl Default for MountKind
impl Default for MountKind
Source§fn default() -> Self
fn default() -> Self
The socket door.
This default exists for ONE reason: ConnectionProcessState derives
Default, and dozens of scheduler-free unit fixtures build a state by
hand with ..Default::default(). Those fixtures are socket-shaped, so
the socket door is the truthful value for them.
No production path relies on it. Each of the three spawn paths stamps
its own kind explicitly, and the mount pins assert each door’s stamp
rather than trusting this fallback — so a door that forgot to stamp
fails a test instead of quietly reporting Tcp.
impl Eq for MountKind
impl StructuralPartialEq for MountKind
Auto Trait Implementations§
impl Freeze for MountKind
impl RefUnwindSafe for MountKind
impl Send for MountKind
impl Sync for MountKind
impl Unpin for MountKind
impl UnsafeUnpin for MountKind
impl UnwindSafe for MountKind
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.