pub struct WirePlaneTable {
pub planes: BTreeMap<String, WirePlane>,
}Expand description
Wire-plane discovery table served at GET /.well-known/planes (#821).
Enumerates every non-file wire plane the daemon serves, keyed by a stable
plane NAME (9p, moq, …) → its current WirePlane advertisement. This
is the source of truth a client resolves the /9p (and any future) selector
against; the serve side ADVERTISES the path here rather than the value being
duplicated as a hardcoded constant on both the dial and serve sides.
Companions — does not replace — Export9pDiscovery at
/.well-known/export9p: the 9p entry here is derived from the SAME
Export9pDiscovery::default values (endpoint/ticket_param/protocol),
so the two documents can never drift and the existing export9p contract
(which 1:3.0’s WsMountTransport reads today) is untouched.
BTreeMap gives a deterministic, stably-ordered JSON object.
Fields§
§planes: BTreeMap<String, WirePlane>Plane name → advertisement. Stably ordered.
Implementations§
Source§impl WirePlaneTable
impl WirePlaneTable
Sourcepub fn current() -> Self
pub fn current() -> Self
Build the table from the daemon’s actually-registered planes.
The 9p entry is derived from Export9pDiscovery::default so it stays
byte-for-byte consistent with the companion export9p document. The moq
streaming plane advertises hyprstream_rpc::dial::MOQ_PATH (its
existing WebTransport selector) so this table is authoritative for it
too. Both planes list the carriers they are actually reachable over: the
9P plane over WebSocket (H1a, /9p) and WebTransport (H1b, #765), the
moq plane over WebTransport.
Trait Implementations§
Source§impl Clone for WirePlaneTable
impl Clone for WirePlaneTable
Source§fn clone(&self) -> WirePlaneTable
fn clone(&self) -> WirePlaneTable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WirePlaneTable
impl Debug for WirePlaneTable
Source§impl Default for WirePlaneTable
impl Default for WirePlaneTable
Source§impl<'de> Deserialize<'de> for WirePlaneTable
impl<'de> Deserialize<'de> for WirePlaneTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WirePlaneTable
impl PartialEq for WirePlaneTable
Source§fn eq(&self, other: &WirePlaneTable) -> bool
fn eq(&self, other: &WirePlaneTable) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WirePlaneTable
impl Serialize for WirePlaneTable
impl Eq for WirePlaneTable
impl StructuralPartialEq for WirePlaneTable
Auto Trait Implementations§
impl Freeze for WirePlaneTable
impl RefUnwindSafe for WirePlaneTable
impl Send for WirePlaneTable
impl Sync for WirePlaneTable
impl Unpin for WirePlaneTable
impl UnsafeUnpin for WirePlaneTable
impl UnwindSafe for WirePlaneTable
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request