#[non_exhaustive]pub enum MediaRole {
Ingest(Box<dyn MediaSink>),
Egress(Box<EgressSource>),
}Expand description
What the session does with the negotiated media stream.
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.
Ingest(Box<dyn MediaSink>)
RTP-in: dispatch peer frames into a MediaSink.
Egress(Box<EgressSource>)
RTP-out: pull frames from a crate::egress::EgressSource and forward to the peer.
Auto Trait Implementations§
impl !RefUnwindSafe for MediaRole
impl !Sync for MediaRole
impl !UnwindSafe for MediaRole
impl Freeze for MediaRole
impl Send for MediaRole
impl Unpin for MediaRole
impl UnsafeUnpin for MediaRole
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