Enum cros_codecs::utils::vaapi::NegotiationStatus
source · [−]pub(crate) enum NegotiationStatus<T> {
NonNegotiated,
Possible(T),
Negotiated,
}
Expand description
Keeps track of where the backend is in the negotiation process.
The generic parameter is the data that the decoder wishes to pass from the Possible
to the
Negotiated
state - typically, the properties of the stream like its resolution as they have
been parsed.
Variants
NonNegotiated
No property about the stream has been parsed yet.
Possible(T)
Properties of the stream have been parsed and the client may query and change them.
Negotiated
Stream is actively decoding and its properties cannot be changed by the client.
Trait Implementations
sourceimpl<T: Clone> Clone for NegotiationStatus<T>
impl<T: Clone> Clone for NegotiationStatus<T>
sourcefn clone(&self) -> NegotiationStatus<T>
fn clone(&self) -> NegotiationStatus<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T> Debug for NegotiationStatus<T>
impl<T> Debug for NegotiationStatus<T>
sourceimpl<T: Default> Default for NegotiationStatus<T>
impl<T: Default> Default for NegotiationStatus<T>
sourcefn default() -> NegotiationStatus<T>
fn default() -> NegotiationStatus<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for NegotiationStatus<T>where
T: RefUnwindSafe,
impl<T> Send for NegotiationStatus<T>where
T: Send,
impl<T> Sync for NegotiationStatus<T>where
T: Sync,
impl<T> Unpin for NegotiationStatus<T>where
T: Unpin,
impl<T> UnwindSafe for NegotiationStatus<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more