Struct bt_a2dp::stream::StreamsBuilder
source · 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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)