pub struct OutputOptionsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> OutputOptionsBuilder<S>
impl<S: State> OutputOptionsBuilder<S>
Sourcepub fn build(self) -> OutputOptionswhere
S: IsComplete,
pub fn build(self) -> OutputOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn buffer_size(self, value: usize) -> OutputOptionsBuilder<SetBufferSize<S>>where
S::BufferSize: IsUnset,
pub fn buffer_size(self, value: usize) -> OutputOptionsBuilder<SetBufferSize<S>>where
S::BufferSize: IsUnset,
Sourcepub fn maybe_buffer_size(
self,
value: Option<usize>,
) -> OutputOptionsBuilder<SetBufferSize<S>>where
S::BufferSize: IsUnset,
pub fn maybe_buffer_size(
self,
value: Option<usize>,
) -> OutputOptionsBuilder<SetBufferSize<S>>where
S::BufferSize: IsUnset,
Source§impl<S: State> OutputOptionsBuilder<S>
impl<S: State> OutputOptionsBuilder<S>
Sourcepub fn format_ffi(
self,
format_ffi: *const AVOutputFormat,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
pub fn format_ffi(
self,
format_ffi: *const AVOutputFormat,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
Sets the format FFI.
Returns an error if the format FFI is null.
Sourcepub fn format_name(
self,
format_name: &str,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
pub fn format_name(
self,
format_name: &str,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
Gets the format ffi from the format name.
Returns an error if the format name is empty or the format was not found.
Sourcepub fn format_mime_type(
self,
format_mime_type: &str,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
pub fn format_mime_type(
self,
format_mime_type: &str,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
Gets the format ffi from the format mime type.
Returns an error if the format mime type is empty or the format was not found.
Sourcepub fn format_name_mime_type(
self,
format_name: &str,
format_mime_type: &str,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
pub fn format_name_mime_type(
self,
format_name: &str,
format_mime_type: &str,
) -> Result<OutputOptionsBuilder<SetFormatFfi<S>>, FfmpegError>where
S::FormatFfi: IsUnset,
Sets the format ffi from the format name and mime type.
Returns an error if both the format name and mime type are empty or the format was not found.
Auto Trait Implementations§
impl<S> Freeze for OutputOptionsBuilder<S>
impl<S> RefUnwindSafe for OutputOptionsBuilder<S>
impl<S = Empty> !Send for OutputOptionsBuilder<S>
impl<S = Empty> !Sync for OutputOptionsBuilder<S>
impl<S> Unpin for OutputOptionsBuilder<S>
impl<S> UnwindSafe for OutputOptionsBuilder<S>
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