pub struct EncoderTaskEncodeBuilder<'a> {
builder: Box<Builder>,
task: &'a EncoderTask,
}Expand description
A builder for encoding messages
Fields§
§builder: Box<Builder>§task: &'a EncoderTaskImplementations§
Source§impl<'a> EncoderTaskEncodeBuilder<'a>
impl<'a> EncoderTaskEncodeBuilder<'a>
Sourcepub fn new(task: &'a EncoderTask) -> Self
pub fn new(task: &'a EncoderTask) -> Self
Make a new EncoderTaskEncodeBuilder
Sourcepub fn audio_codec(&mut self, audio_codec: impl Into<String>) -> &mut Self
pub fn audio_codec(&mut self, audio_codec: impl Into<String>) -> &mut Self
Set the audio codec
Sourcepub fn video_codec(&mut self, video_codec: impl Into<String>) -> &mut Self
pub fn video_codec(&mut self, video_codec: impl Into<String>) -> &mut Self
Set the video codec
Sourcepub fn video_bitrate(&mut self, video_bitrate: impl Into<String>) -> &mut Self
pub fn video_bitrate(&mut self, video_bitrate: impl Into<String>) -> &mut Self
Set the video bitrate
Sourcepub fn input_format(&mut self, input_format: impl Into<String>) -> &mut Self
pub fn input_format(&mut self, input_format: impl Into<String>) -> &mut Self
Set the input format
Sourcepub fn output_format(&mut self, output_format: impl Into<String>) -> &mut Self
pub fn output_format(&mut self, output_format: impl Into<String>) -> &mut Self
Set the output format
Sourcepub fn video_frames(&mut self, video_frames: impl Into<u64>) -> &mut Self
pub fn video_frames(&mut self, video_frames: impl Into<u64>) -> &mut Self
Set the # of video frames from the input
Sourcepub fn video_profile(&mut self, video_profile: impl Into<String>) -> &mut Self
pub fn video_profile(&mut self, video_profile: impl Into<String>) -> &mut Self
Set the video profile
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EncoderTaskEncodeBuilder<'a>
impl<'a> !RefUnwindSafe for EncoderTaskEncodeBuilder<'a>
impl<'a> Send for EncoderTaskEncodeBuilder<'a>
impl<'a> Sync for EncoderTaskEncodeBuilder<'a>
impl<'a> Unpin for EncoderTaskEncodeBuilder<'a>
impl<'a> !UnwindSafe for EncoderTaskEncodeBuilder<'a>
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request