pub struct RedAudioBuilder { /* private fields */ }Expand description
Builder for RedAudioInterceptor.
Implementations§
Source§impl RedAudioBuilder
impl RedAudioBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
One earlier primary per packet, payloads of at most
RED_AUDIO_DEFAULT_MAX_PAYLOAD_SIZE octets, sent in RED when the remote side prefers
it (AudioRedundancy::WhenPreferred).
Sourcepub fn with_audio_redundancy(self, audio_redundancy: AudioRedundancy) -> Self
pub fn with_audio_redundancy(self, audio_redundancy: AudioRedundancy) -> Self
When a local stream that negotiated RED is sent in RED; see AudioRedundancy.
Sourcepub fn with_redundancy(self, redundancy: usize) -> Self
pub fn with_redundancy(self, redundancy: usize) -> Self
How many earlier primaries each RED packet carries (0 sends RED packets with the primary alone).
Sourcepub fn with_max_payload_size(self, max_payload_size: usize) -> Self
pub fn with_max_payload_size(self, max_payload_size: usize) -> Self
The largest RED payload built; redundant blocks that would exceed it are left out.
Sourcepub fn build(self) -> RedAudioInterceptor
pub fn build(self) -> RedAudioInterceptor
The interceptor.
Trait Implementations§
Source§impl Clone for RedAudioBuilder
impl Clone for RedAudioBuilder
Source§impl Debug for RedAudioBuilder
impl Debug for RedAudioBuilder
Auto Trait Implementations§
impl Forget for RedAudioBuilder
impl Freeze for RedAudioBuilder
impl Move for RedAudioBuilder
impl RefUnwindSafe for RedAudioBuilder
impl Send for RedAudioBuilder
impl Sync for RedAudioBuilder
impl Unpin for RedAudioBuilder
impl UnsafeUnpin for RedAudioBuilder
impl UnwindSafe for RedAudioBuilder
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