pub struct Credentials {
pub token: Option<String>,
pub addr: Option<SocketAddr>,
pub params: Vec<(String, String)>,
}Expand description
Credentials presented by a connecting publisher or player.
Protocol handlers populate whichever fields their transport carries (an RTMP
stream key in token, a WHIP bearer in token, the peer address in addr,
query parameters in params).
Fields§
§token: Option<String>Opaque secret: a stream key, signed URL token, or bearer credential.
addr: Option<SocketAddr>Remote peer address, when the transport exposes one.
params: Vec<(String, String)>Arbitrary protocol-supplied key/value parameters (e.g. query string).
Implementations§
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
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 Credentials
impl Debug for Credentials
Source§impl Default for Credentials
impl Default for Credentials
Source§fn default() -> Credentials
fn default() -> Credentials
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
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