pub struct StreamsBuilder { /* private fields */ }
Expand description
Builds a set of streams, based on the capabilities of a set of MediaTaskBuilders that are supported and configured by the system.
Implementations§
Source§impl StreamsBuilder
impl StreamsBuilder
Sourcepub fn add_builder(&mut self, builder: impl MediaTaskBuilder + 'static)
pub fn add_builder(&mut self, builder: impl MediaTaskBuilder + 'static)
Add a builder to the set of builders used to generate streams.
pub async fn peer_streams( &self, peer_id: &PeerId, offload: Option<AudioOffloadExtProxy>, ) -> Result<Streams, MediaTaskError>
pub async fn negotiation( &self, peer_id: &PeerId, offload: Option<AudioOffloadExtProxy>, preferred_direction: EndpointType, ) -> Result<CodecNegotiation, Error>
Trait Implementations§
Source§impl Clone for StreamsBuilder
impl Clone for StreamsBuilder
Source§impl Default for StreamsBuilder
impl Default for StreamsBuilder
Auto Trait Implementations§
impl Freeze for StreamsBuilder
impl !RefUnwindSafe for StreamsBuilder
impl Send for StreamsBuilder
impl Sync for StreamsBuilder
impl Unpin for StreamsBuilder
impl !UnwindSafe for StreamsBuilder
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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