#[non_exhaustive]pub struct VideoStream {
pub codec_settings: Option<CodecSettings>,
/* private fields */
}
Expand description
Video stream resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.codec_settings: Option<CodecSettings>
Codec settings can be h264, h265, or vp9.
Implementations§
Source§impl VideoStream
impl VideoStream
pub fn new() -> Self
Sourcepub fn set_codec_settings<T: Into<Option<CodecSettings>>>(self, v: T) -> Self
pub fn set_codec_settings<T: Into<Option<CodecSettings>>>(self, v: T) -> Self
Sets the value of codec_settings.
Note that all the setters affecting codec_settings
are mutually
exclusive.
Sourcepub fn h264(&self) -> Option<&Box<H264CodecSettings>>
pub fn h264(&self) -> Option<&Box<H264CodecSettings>>
The value of codec_settings
if it holds a H264
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_h264<T: Into<Box<H264CodecSettings>>>(self, v: T) -> Self
pub fn set_h264<T: Into<Box<H264CodecSettings>>>(self, v: T) -> Self
Sets the value of codec_settings
to hold a H264
.
Note that all the setters affecting codec_settings
are
mutually exclusive.
Sourcepub fn h265(&self) -> Option<&Box<H265CodecSettings>>
pub fn h265(&self) -> Option<&Box<H265CodecSettings>>
The value of codec_settings
if it holds a H265
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_h265<T: Into<Box<H265CodecSettings>>>(self, v: T) -> Self
pub fn set_h265<T: Into<Box<H265CodecSettings>>>(self, v: T) -> Self
Sets the value of codec_settings
to hold a H265
.
Note that all the setters affecting codec_settings
are
mutually exclusive.
Sourcepub fn vp9(&self) -> Option<&Box<Vp9CodecSettings>>
pub fn vp9(&self) -> Option<&Box<Vp9CodecSettings>>
The value of codec_settings
if it holds a Vp9
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_vp9<T: Into<Box<Vp9CodecSettings>>>(self, v: T) -> Self
pub fn set_vp9<T: Into<Box<Vp9CodecSettings>>>(self, v: T) -> Self
Sets the value of codec_settings
to hold a Vp9
.
Note that all the setters affecting codec_settings
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for VideoStream
impl Clone for VideoStream
Source§fn clone(&self) -> VideoStream
fn clone(&self) -> VideoStream
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more