pub struct Identity { /* private fields */ }Expand description
Names one continuous stream at a path.
Within an identity, group keys never restart and never name two different groups, so a reader continues across every route that shares it. Different identities are independent streams, never stitched together.
Two identities are equal only when both their text and whether they were minted match, so a named identity never matches a minted one.
Implementations§
Source§impl Identity
impl Identity
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
The identity’s text, which alone does not tell a minted identity from a named one.
Sourcepub fn is_minted(&self) -> bool
pub fn is_minted(&self) -> bool
Whether a session minted this identity, for a route whose wire (an older moq-lite, or moq-transport) carries none. It names the announcement rather than the publisher’s stream, so it can neither match nor contradict an identity the publisher named. Hops that forward it keep the flag, and only a session sets it: parsing text never builds a minted identity.
Trait Implementations§
impl Eq for Identity
Source§impl Ord for Identity
impl Ord for Identity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Identity
impl PartialOrd for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.