pub struct MoqEventObjectRef { /* private fields */ }Expand description
The exact decoded track/prefix identity for one MoQ/event object.
Constructed only by Self::parse at the plane boundary. The service
coordinate is canonical (shared 1..=128-byte rule); the remaining segments
are preserved verbatim so the identity is exact, and the plane makes it
non-reinterpretable by any other plane’s resolver.
Implementations§
Source§impl MoqEventObjectRef
impl MoqEventObjectRef
Sourcepub fn parse(plane: MoqEventPlane, coordinate: &str) -> Option<Self>
pub fn parse(plane: MoqEventPlane, coordinate: &str) -> Option<Self>
Parse the plane’s coordinate grammar exactly once.
Returns None for every deviation — wrong segment count, empty or
oversized segments, path-traversal segments, a / inside an event
coordinate (which would alias the broadcast-path namespace), or a
noncanonical service segment. Unknown input denies; it is never
rewritten.
Sourcepub fn plane(&self) -> MoqEventPlane
pub fn plane(&self) -> MoqEventPlane
The plane this identity belongs to.
Sourcepub fn service_domain(&self) -> &str
pub fn service_domain(&self) -> &str
The canonical service domain of the declaring service.
Sourcepub fn audit_coordinate(&self) -> String
pub fn audit_coordinate(&self) -> String
The raw coordinate this ref would audit as (plane-tagged; the audit trail records what was decoded, never a reinterpretation).
Trait Implementations§
Source§impl Clone for MoqEventObjectRef
impl Clone for MoqEventObjectRef
Source§fn clone(&self) -> MoqEventObjectRef
fn clone(&self) -> MoqEventObjectRef
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 MoqEventObjectRef
impl Debug for MoqEventObjectRef
Source§impl Hash for MoqEventObjectRef
impl Hash for MoqEventObjectRef
Source§impl PartialEq for MoqEventObjectRef
impl PartialEq for MoqEventObjectRef
Source§fn eq(&self, other: &MoqEventObjectRef) -> bool
fn eq(&self, other: &MoqEventObjectRef) -> bool
self and other values to be equal, and is used by ==.impl Eq for MoqEventObjectRef
impl StructuralPartialEq for MoqEventObjectRef
Auto Trait Implementations§
impl Freeze for MoqEventObjectRef
impl RefUnwindSafe for MoqEventObjectRef
impl Send for MoqEventObjectRef
impl Sync for MoqEventObjectRef
impl Unpin for MoqEventObjectRef
impl UnsafeUnpin for MoqEventObjectRef
impl UnwindSafe for MoqEventObjectRef
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
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
§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 more