pub struct DataTrackInfo { /* private fields */ }Expand description
Information about a published data track.
Implementations§
Source§impl DataTrackInfo
impl DataTrackInfo
Sourcepub fn sid(&self) -> DataTrackSid
pub fn sid(&self) -> DataTrackSid
Unique track identifier assigned by the SFU.
This identifier may change if a reconnect occurs. Use Self::name if a
stable identifier is needed.
Sourcepub fn uses_e2ee(&self) -> bool
pub fn uses_e2ee(&self) -> bool
Whether or not frames sent on the track use end-to-end encryption.
Sourcepub fn schema(&self) -> Option<&DataTrackSchemaId>
pub fn schema(&self) -> Option<&DataTrackSchemaId>
Schema associated with frames sent on the track.
Returns None if the publisher did not associate a
DataTrackSchemaId with the track.
Sourcepub fn frame_encoding(&self) -> Option<&DataTrackFrameEncoding>
pub fn frame_encoding(&self) -> Option<&DataTrackFrameEncoding>
Encoding of frames sent on the track.
Returns None if the publisher did not specify a
DataTrackFrameEncoding for the track.
Trait Implementations§
Source§impl Clone for DataTrackInfo
impl Clone for DataTrackInfo
Source§fn clone(&self) -> DataTrackInfo
fn clone(&self) -> DataTrackInfo
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 DataTrackInfo
impl Debug for DataTrackInfo
Source§impl From<DataTrackInfo> for DataTrackInfo
impl From<DataTrackInfo> for DataTrackInfo
Source§fn from(info: DataTrackInfo) -> Self
fn from(info: DataTrackInfo) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DataTrackInfo> for DataTrackInfo
impl TryFrom<DataTrackInfo> for DataTrackInfo
Source§type Error = InternalError
type Error = InternalError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DataTrackInfo
impl RefUnwindSafe for DataTrackInfo
impl Send for DataTrackInfo
impl Sync for DataTrackInfo
impl Unpin for DataTrackInfo
impl UnsafeUnpin for DataTrackInfo
impl UnwindSafe for DataTrackInfo
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