pub struct MediaStream {
pub cancel_token: CancellationToken,
pub packet_sender: TrackPacketSender,
/* private fields */
}Fields§
§cancel_token: CancellationToken§packet_sender: TrackPacketSenderImplementations§
Source§impl MediaStream
impl MediaStream
pub async fn serve(&self) -> Result<()>
pub fn stop(&self, _reason: Option<String>, _initiator: Option<String>)
pub async fn cleanup(&self) -> Result<()>
pub async fn update_recorder_option(&self, recorder_config: RecorderOption)
pub async fn remove_track(&self, id: &TrackId, graceful: bool)
pub async fn update_remote_description( &self, track_id: &TrackId, answer: &String, ) -> Result<()>
pub async fn update_remote_description_force( &self, track_id: &TrackId, answer: &String, ) -> Result<()>
pub async fn handshake( &self, track_id: &TrackId, offer: String, timeout: Option<Duration>, ) -> Result<String>
pub async fn update_track(&self, track: Box<dyn Track>, play_id: Option<String>)
pub async fn mute_track(&self, id: Option<TrackId>)
pub async fn unmute_track(&self, id: Option<TrackId>)
pub async fn suppress_forwarding(&self, track_id: &TrackId)
pub async fn resume_forwarding(&self, track_id: &TrackId)
Source§impl MediaStream
impl MediaStream
pub async fn start_recorder(&self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for MediaStream
impl !RefUnwindSafe for MediaStream
impl Send for MediaStream
impl Sync for MediaStream
impl Unpin for MediaStream
impl !UnwindSafe for MediaStream
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more