Struct aws_sdk_ivs::types::AudioConfiguration
source · #[non_exhaustive]pub struct AudioConfiguration {
pub codec: Option<String>,
pub target_bitrate: i64,
pub sample_rate: i64,
pub channels: i64,
}
Expand description
Object specifying a stream’s audio configuration, as set up by the broadcaster (usually in an encoder). This is part of the IngestConfiguration
object and used for monitoring stream health.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.codec: Option<String>
Codec used for the audio encoding.
target_bitrate: i64
The expected ingest bitrate (bits per second). This is configured in the encoder.
sample_rate: i64
Number of audio samples recorded per second.
channels: i64
Number of audio channels.
Implementations§
source§impl AudioConfiguration
impl AudioConfiguration
sourcepub fn target_bitrate(&self) -> i64
pub fn target_bitrate(&self) -> i64
The expected ingest bitrate (bits per second). This is configured in the encoder.
sourcepub fn sample_rate(&self) -> i64
pub fn sample_rate(&self) -> i64
Number of audio samples recorded per second.
source§impl AudioConfiguration
impl AudioConfiguration
sourcepub fn builder() -> AudioConfigurationBuilder
pub fn builder() -> AudioConfigurationBuilder
Creates a new builder-style object to manufacture AudioConfiguration
.
Trait Implementations§
source§impl Clone for AudioConfiguration
impl Clone for AudioConfiguration
source§fn clone(&self) -> AudioConfiguration
fn clone(&self) -> AudioConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AudioConfiguration
impl Debug for AudioConfiguration
source§impl PartialEq for AudioConfiguration
impl PartialEq for AudioConfiguration
source§fn eq(&self, other: &AudioConfiguration) -> bool
fn eq(&self, other: &AudioConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AudioConfiguration
Auto Trait Implementations§
impl Freeze for AudioConfiguration
impl RefUnwindSafe for AudioConfiguration
impl Send for AudioConfiguration
impl Sync for AudioConfiguration
impl Unpin for AudioConfiguration
impl UnwindSafe for AudioConfiguration
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> 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 moreCreates a shared type from an unshared type.