pub enum ContextState {
Suspended,
Running,
Closed,
Interrupted,
Unrecognized(String),
}Expand description
Enum of AudioContextState from the spec
Variants§
Suspended
suspended
Running
running
Closed
closed
Interrupted
interrupted
Unrecognized(String)
A value this vendored schema does not list. Chrome adds values ahead of the published protocol, so an unrecognised one is kept as it arrived rather than failing the payload it came in.
Trait Implementations§
Source§impl Clone for ContextState
impl Clone for ContextState
Source§impl Debug for ContextState
impl Debug for ContextState
Source§impl<'de> Deserialize<'de> for ContextState
impl<'de> Deserialize<'de> for ContextState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextState
Source§impl Hash for ContextState
impl Hash for ContextState
Source§impl PartialEq for ContextState
impl PartialEq for ContextState
Source§impl Serialize for ContextState
impl Serialize for ContextState
impl StructuralPartialEq for ContextState
Auto Trait Implementations§
impl Forget for ContextState
impl Freeze for ContextState
impl RefUnwindSafe for ContextState
impl Send for ContextState
impl Sync for ContextState
impl Unpin for ContextState
impl UnsafeUnpin for ContextState
impl UnwindSafe for ContextState
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