pub struct NegotiatedCapability {
pub codec: String,
pub profile: String,
pub bit_depths: Vec<u8>,
pub chroma_formats: Vec<ChromaSubsampling>,
pub max_resolution: (u32, u32),
pub max_bitrate_kbps: u32,
}Expand description
Result of capability negotiation.
Fields§
§codec: StringCodec name.
profile: StringBest common profile (highest tier both support).
bit_depths: Vec<u8>Common bit depths.
chroma_formats: Vec<ChromaSubsampling>Common chroma formats.
max_resolution: (u32, u32)Minimum of both max resolutions.
max_bitrate_kbps: u32Minimum of both max bitrates.
Trait Implementations§
Source§impl Clone for NegotiatedCapability
impl Clone for NegotiatedCapability
Source§fn clone(&self) -> NegotiatedCapability
fn clone(&self) -> NegotiatedCapability
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 NegotiatedCapability
impl Debug for NegotiatedCapability
Source§impl PartialEq for NegotiatedCapability
impl PartialEq for NegotiatedCapability
impl Eq for NegotiatedCapability
impl StructuralPartialEq for NegotiatedCapability
Auto Trait Implementations§
impl Freeze for NegotiatedCapability
impl RefUnwindSafe for NegotiatedCapability
impl Send for NegotiatedCapability
impl Sync for NegotiatedCapability
impl Unpin for NegotiatedCapability
impl UnsafeUnpin for NegotiatedCapability
impl UnwindSafe for NegotiatedCapability
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<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