pub struct StreamContext {
pub session: SessionContext,
pub stream_id: u32,
pub stream_key: String,
pub is_publishing: bool,
}Expand description
Stream context passed to media callbacks
Fields§
§session: SessionContextParent session context
stream_id: u32Message stream ID
stream_key: StringStream key
is_publishing: boolWhether this is a publishing or playing stream
Implementations§
Source§impl StreamContext
impl StreamContext
Trait Implementations§
Source§impl Clone for StreamContext
impl Clone for StreamContext
Source§fn clone(&self) -> StreamContext
fn clone(&self) -> StreamContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamContext
impl RefUnwindSafe for StreamContext
impl Send for StreamContext
impl Sync for StreamContext
impl Unpin for StreamContext
impl UnwindSafe for StreamContext
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