Enum obws::events::OutputState
source · #[non_exhaustive]pub enum OutputState {
Starting,
Started,
Stopping,
Stopped,
Reconnecting,
Reconnected,
Paused,
Resumed,
Unknown,
}
Expand description
The output state describes the current status of any output (like recording, virtual-cam, …).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Starting
A request to start the output has been issued.
Started
Output started successfully.
Stopping
A request to stop the output has been issued.
Stopped
Output stopped successfully.
Reconnecting
Output disconnected and is reconnecting.
Reconnected
Output reconnected successfully.
Paused
Current output paused.
Resumed
Current output resumed.
Unknown
Fallback for any unknown event type.
Trait Implementations§
source§impl Clone for OutputState
impl Clone for OutputState
source§fn clone(&self) -> OutputState
fn clone(&self) -> OutputState
Returns a copy 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 OutputState
impl Debug for OutputState
source§impl<'de> Deserialize<'de> for OutputState
impl<'de> Deserialize<'de> for OutputState
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
source§impl Hash for OutputState
impl Hash for OutputState
source§impl Ord for OutputState
impl Ord for OutputState
source§fn cmp(&self, other: &OutputState) -> Ordering
fn cmp(&self, other: &OutputState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<OutputState> for OutputState
impl PartialEq<OutputState> for OutputState
source§fn eq(&self, other: &OutputState) -> bool
fn eq(&self, other: &OutputState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OutputState> for OutputState
impl PartialOrd<OutputState> for OutputState
source§fn partial_cmp(&self, other: &OutputState) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for OutputState
impl Serialize for OutputState
impl Copy for OutputState
impl Eq for OutputState
impl StructuralEq for OutputState
impl StructuralPartialEq for OutputState
Auto Trait Implementations§
impl RefUnwindSafe for OutputState
impl Send for OutputState
impl Sync for OutputState
impl Unpin for OutputState
impl UnwindSafe for OutputState
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