#[non_exhaustive]pub enum ClientOrigin {
Local,
RelayFromSfu(String),
}Expand description
Whether this client represents a direct peer or an upstream SFU relay.
Local is the default — a direct WebRTC peer connection. RelayFromSfu
is set by the application after ICE/DTLS completes on the edge-to-edge
relay connection; the string is an opaque upstream edge identifier
(typically URL or region ID) used for logging and diagnostics.
§Call order
Call Client::set_origin before
Registry::insert. The insert path reads
is_relay() to decide whether to register the peer with the
dominant-speaker detector.
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.
Local
A normal WebRTC peer connected directly to this SFU.
RelayFromSfu(String)
A relay connection from another SFU edge.
The string is typically the upstream edge URL or region identifier. It has no semantic effect inside the kit.
Trait Implementations§
Source§impl Clone for ClientOrigin
impl Clone for ClientOrigin
Source§fn clone(&self) -> ClientOrigin
fn clone(&self) -> ClientOrigin
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 ClientOrigin
impl Debug for ClientOrigin
Source§impl Default for ClientOrigin
impl Default for ClientOrigin
Source§fn default() -> ClientOrigin
fn default() -> ClientOrigin
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClientOrigin
impl PartialEq for ClientOrigin
Source§fn eq(&self, other: &ClientOrigin) -> bool
fn eq(&self, other: &ClientOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ClientOrigin
impl StructuralPartialEq for ClientOrigin
Auto Trait Implementations§
impl Freeze for ClientOrigin
impl RefUnwindSafe for ClientOrigin
impl Send for ClientOrigin
impl Sync for ClientOrigin
impl Unpin for ClientOrigin
impl UnsafeUnpin for ClientOrigin
impl UnwindSafe for ClientOrigin
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