pub enum AudioEncoderSource {
Buffer(Vec<u8>),
}展开描述
VideoEncoder 使用的音频源。编码器取得这些字节的所有权。
变体§
自动 Trait 实现§
impl Freeze for AudioEncoderSource
impl RefUnwindSafe for AudioEncoderSource
impl Send for AudioEncoderSource
impl Sync for AudioEncoderSource
impl Unpin for AudioEncoderSource
impl UnsafeUnpin for AudioEncoderSource
impl UnwindSafe for AudioEncoderSource
通用实现§
源代码§impl<T> IntoEither for T
impl<T> IntoEither for T
源代码§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
将
self 转换为 Left 变体,如果 Either<Self, Self>
当 into_left is true.
Converts self into a Right 变体,如果 Either<Self, Self>
否则。 阅读更多源代码§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
将
self 转换为 Left 变体,如果 Either<Self, Self>
当 into_left(&self) returns true.
Converts self into a Right 变体,如果 Either<Self, Self>
否则。 阅读更多