#[non_exhaustive]pub enum Perspective {
Client,
Server,
Observer,
RelayTap,
Other(String),
}Expand description
Recording perspective — who captured the trace.
An unrecognised value is preserved as Perspective::Other rather than
rejected: the format admits new perspectives without a version bump, and
every event in such a file is still parseable.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Client
MoQT client (initiator of the QUIC connection).
Server
MoQT server or relay (single-session view from inside the endpoint).
Observer
Passive observer (e.g. DevTools extension, network tap).
RelayTap
Active capture from inside a relay, reporting on multiple concurrent
peer sessions. Distinct from Perspective::Server because events
span peers and carry a peer identifier.
Other(String)
A perspective this version of the crate does not know, kept verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for Perspective
impl Clone for Perspective
Source§fn clone(&self) -> Perspective
fn clone(&self) -> Perspective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Perspective
impl Debug for Perspective
Source§impl Display for Perspective
impl Display for Perspective
impl Eq for Perspective
Source§impl PartialEq for Perspective
impl PartialEq for Perspective
impl StructuralPartialEq for Perspective
Auto Trait Implementations§
impl Freeze for Perspective
impl RefUnwindSafe for Perspective
impl Send for Perspective
impl Sync for Perspective
impl Unpin for Perspective
impl UnsafeUnpin for Perspective
impl UnwindSafe for Perspective
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
Mutably borrows from an owned value. Read more