pub struct PlaybackFlags { /* private fields */ }Expand description
If the light engine is Ready, this will be 0.
Implementations§
Source§impl PlaybackFlags
impl PlaybackFlags
Sourcepub const SHUTTER_OPEN: PlaybackFlags
pub const SHUTTER_OPEN: PlaybackFlags
Describes the state of the shutter.
Sourcepub const UNDERFLOWED: PlaybackFlags
pub const UNDERFLOWED: PlaybackFlags
Set if the last stream ended with underflow rather than a Stop.
Sourcepub const EMERGENCY_STOP: PlaybackFlags
pub const EMERGENCY_STOP: PlaybackFlags
Set if the last stream ended because the E-Stop state was entered.
This is reset to zero by the Prepare command.
Sourcepub const fn empty() -> PlaybackFlags
pub const fn empty() -> PlaybackFlags
Returns an empty set of flags
Sourcepub const fn all() -> PlaybackFlags
pub const fn all() -> PlaybackFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u16) -> Option<PlaybackFlags>
pub fn from_bits(bits: u16) -> Option<PlaybackFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u16) -> PlaybackFlags
pub const fn from_bits_truncate(bits: u16) -> PlaybackFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u16) -> PlaybackFlags
pub const unsafe fn from_bits_unchecked(bits: u16) -> PlaybackFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: PlaybackFlags) -> bool
pub const fn intersects(&self, other: PlaybackFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: PlaybackFlags) -> bool
pub const fn contains(&self, other: PlaybackFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: PlaybackFlags)
pub fn insert(&mut self, other: PlaybackFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: PlaybackFlags)
pub fn remove(&mut self, other: PlaybackFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: PlaybackFlags)
pub fn toggle(&mut self, other: PlaybackFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: PlaybackFlags, value: bool)
pub fn set(&mut self, other: PlaybackFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for PlaybackFlags
impl Binary for PlaybackFlags
Source§impl BitAnd for PlaybackFlags
impl BitAnd for PlaybackFlags
Source§fn bitand(self, other: PlaybackFlags) -> PlaybackFlags
fn bitand(self, other: PlaybackFlags) -> PlaybackFlags
Returns the intersection between the two sets of flags.
Source§type Output = PlaybackFlags
type Output = PlaybackFlags
& operator.Source§impl BitAndAssign for PlaybackFlags
impl BitAndAssign for PlaybackFlags
Source§fn bitand_assign(&mut self, other: PlaybackFlags)
fn bitand_assign(&mut self, other: PlaybackFlags)
Disables all flags disabled in the set.
Source§impl BitOr for PlaybackFlags
impl BitOr for PlaybackFlags
Source§fn bitor(self, other: PlaybackFlags) -> PlaybackFlags
fn bitor(self, other: PlaybackFlags) -> PlaybackFlags
Returns the union of the two sets of flags.
Source§type Output = PlaybackFlags
type Output = PlaybackFlags
| operator.Source§impl BitOrAssign for PlaybackFlags
impl BitOrAssign for PlaybackFlags
Source§fn bitor_assign(&mut self, other: PlaybackFlags)
fn bitor_assign(&mut self, other: PlaybackFlags)
Adds the set of flags.
Source§impl BitXor for PlaybackFlags
impl BitXor for PlaybackFlags
Source§fn bitxor(self, other: PlaybackFlags) -> PlaybackFlags
fn bitxor(self, other: PlaybackFlags) -> PlaybackFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = PlaybackFlags
type Output = PlaybackFlags
^ operator.Source§impl BitXorAssign for PlaybackFlags
impl BitXorAssign for PlaybackFlags
Source§fn bitxor_assign(&mut self, other: PlaybackFlags)
fn bitxor_assign(&mut self, other: PlaybackFlags)
Toggles the set of flags.
Source§impl Clone for PlaybackFlags
impl Clone for PlaybackFlags
Source§fn clone(&self) -> PlaybackFlags
fn clone(&self) -> PlaybackFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlaybackFlags
impl Debug for PlaybackFlags
Source§impl Extend<PlaybackFlags> for PlaybackFlags
impl Extend<PlaybackFlags> for PlaybackFlags
Source§fn extend<T: IntoIterator<Item = PlaybackFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = PlaybackFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<PlaybackFlags> for PlaybackFlags
impl FromIterator<PlaybackFlags> for PlaybackFlags
Source§fn from_iter<T: IntoIterator<Item = PlaybackFlags>>(
iterator: T,
) -> PlaybackFlags
fn from_iter<T: IntoIterator<Item = PlaybackFlags>>( iterator: T, ) -> PlaybackFlags
Source§impl Hash for PlaybackFlags
impl Hash for PlaybackFlags
Source§impl LowerHex for PlaybackFlags
impl LowerHex for PlaybackFlags
Source§impl Not for PlaybackFlags
impl Not for PlaybackFlags
Source§fn not(self) -> PlaybackFlags
fn not(self) -> PlaybackFlags
Returns the complement of this set of flags.
Source§type Output = PlaybackFlags
type Output = PlaybackFlags
! operator.Source§impl Octal for PlaybackFlags
impl Octal for PlaybackFlags
Source§impl Ord for PlaybackFlags
impl Ord for PlaybackFlags
Source§fn cmp(&self, other: &PlaybackFlags) -> Ordering
fn cmp(&self, other: &PlaybackFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PlaybackFlags
impl PartialEq for PlaybackFlags
Source§impl PartialOrd for PlaybackFlags
impl PartialOrd for PlaybackFlags
Source§impl Sub for PlaybackFlags
impl Sub for PlaybackFlags
Source§fn sub(self, other: PlaybackFlags) -> PlaybackFlags
fn sub(self, other: PlaybackFlags) -> PlaybackFlags
Returns the set difference of the two sets of flags.
Source§type Output = PlaybackFlags
type Output = PlaybackFlags
- operator.Source§impl SubAssign for PlaybackFlags
impl SubAssign for PlaybackFlags
Source§fn sub_assign(&mut self, other: PlaybackFlags)
fn sub_assign(&mut self, other: PlaybackFlags)
Disables all flags enabled in the set.