pub enum TrackPolicyError {
UnsupportedRevision {
table: u32,
supported: u32,
},
NoncanonicalServiceDomain(String),
DuplicateDeclaration {
plane: MoqEventPlane,
service_domain: String,
},
UnrepresentableServiceDomain {
plane: MoqEventPlane,
service_domain: String,
},
}Expand description
Why a declared track-policy table could not be built. Construction failure is fail-closed: the caller keeps no partial table.
Variants§
UnsupportedRevision
The table’s vocabulary revision is newer than
SUPPORTED_TRACK_POLICY_REVISION; this build refuses to partially
interpret it.
NoncanonicalServiceDomain(String)
A row declares a service domain that fails the canonical rule.
DuplicateDeclaration
Two rows declare the same plane + service domain with different labels. Ambiguous declarations are rejected, never merged.
UnrepresentableServiceDomain
A row declares a service domain that the declared plane’s coordinate
grammar can never produce, so the row can match nothing and the
objects it names would instead resolve through a shorter prefix
row’s label. Event coordinates split on . and reject / outright;
stream coordinates split on /.
Trait Implementations§
Source§impl Clone for TrackPolicyError
impl Clone for TrackPolicyError
Source§fn clone(&self) -> TrackPolicyError
fn clone(&self) -> TrackPolicyError
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 TrackPolicyError
impl Debug for TrackPolicyError
Source§impl Display for TrackPolicyError
impl Display for TrackPolicyError
Source§impl Error for TrackPolicyError
impl Error for TrackPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for TrackPolicyError
impl PartialEq for TrackPolicyError
Source§fn eq(&self, other: &TrackPolicyError) -> bool
fn eq(&self, other: &TrackPolicyError) -> bool
self and other values to be equal, and is used by ==.impl Eq for TrackPolicyError
impl StructuralPartialEq for TrackPolicyError
Auto Trait Implementations§
impl Freeze for TrackPolicyError
impl RefUnwindSafe for TrackPolicyError
impl Send for TrackPolicyError
impl Sync for TrackPolicyError
impl Unpin for TrackPolicyError
impl UnsafeUnpin for TrackPolicyError
impl UnwindSafe for TrackPolicyError
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