pub struct CopyDecision {
pub copy_video: bool,
pub copy_audio: bool,
pub video_reason: Option<String>,
pub audio_reason: Option<String>,
}Expand description
Result of a stream copy eligibility check.
Fields§
§copy_video: boolWhether the video stream can be copied.
copy_audio: boolWhether the audio stream can be copied.
video_reason: Option<String>Reason video cannot be copied (if applicable).
audio_reason: Option<String>Reason audio cannot be copied (if applicable).
Implementations§
Source§impl CopyDecision
impl CopyDecision
Sourcepub fn full_remux(&self) -> bool
pub fn full_remux(&self) -> bool
Returns true if all streams can be copied (full remux).
Sourcepub fn effective_mode(&self) -> StreamCopyMode
pub fn effective_mode(&self) -> StreamCopyMode
Returns the effective StreamCopyMode based on the decision.
Trait Implementations§
Source§impl Clone for CopyDecision
impl Clone for CopyDecision
Source§fn clone(&self) -> CopyDecision
fn clone(&self) -> CopyDecision
Returns a duplicate 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 CopyDecision
impl Debug for CopyDecision
Source§impl PartialEq for CopyDecision
impl PartialEq for CopyDecision
impl Eq for CopyDecision
impl StructuralPartialEq for CopyDecision
Auto Trait Implementations§
impl Freeze for CopyDecision
impl RefUnwindSafe for CopyDecision
impl Send for CopyDecision
impl Sync for CopyDecision
impl Unpin for CopyDecision
impl UnsafeUnpin for CopyDecision
impl UnwindSafe for CopyDecision
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more