pub struct SettableElementState {
pub type_specific: Option<SettableTypeSpecificElementState>,
pub vendor_specific_data: Option<Vec<u8>>,
pub started: Option<bool>,
pub bypassed: Option<bool>,
/* private fields */
}
Expand description
Processing element state that can be set by clients.
Fields§
§type_specific: Option<SettableTypeSpecificElementState>
Type-specific state parameters for the processing element.
If this processing element is disabled and its type-specific state is provided, then the
type-specific state is only informational, for instance if a SetElementState
enables a
disabled processing element providing a SettableTypeSpecificElementState
, then any
previous informational SettableTypeSpecificElementState
is superceded.
If not set, then the element’s previous type_specific
state will be unchanged.
Optional for Dynamics, Equalizer, Gain and VendorSpecific types. Invalid if included for any other element type.
vendor_specific_data: Option<Vec<u8>>
If included, an opaque object of octets for exchanging vendor specific information. This can send vendor-specific data to any element, not just the VendorSpecific type.
Optional.
started: Option<bool>
Whether to start this processing element (or to stop it, if false). A stopped processing element does not provide its abstracted functionality. Specifically, no audio data flows through a stopped element.
If the corresponding Element
returned can_stop
equals to false
, then this field
must not be set to false
.
If not set, then the element’s previous started
state will be unchanged.
Optional.
bypassed: Option<bool>
Whether to bypass this processing element (or to enable/“unbypass” it, if false). A bypassed element does not affect the flow of audio through the topology. Specifically, audio flows through the element without any change.
If the corresponding Element
contains a can_bypass
of false
, then this field
must not be set to true
.
If not set, then the element’s previous bypassed
state will be unchanged.
Optional.
Trait Implementations§
Source§impl Clone for SettableElementState
impl Clone for SettableElementState
Source§fn clone(&self) -> SettableElementState
fn clone(&self) -> SettableElementState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SettableElementState
impl Debug for SettableElementState
Source§impl<D: ResourceDialect> Decode<SettableElementState, D> for SettableElementState
impl<D: ResourceDialect> Decode<SettableElementState, D> for SettableElementState
Source§impl Default for SettableElementState
impl Default for SettableElementState
Source§fn default() -> SettableElementState
fn default() -> SettableElementState
Source§impl<D: ResourceDialect> Encode<SettableElementState, D> for &SettableElementState
impl<D: ResourceDialect> Encode<SettableElementState, D> for &SettableElementState
Source§impl PartialEq for SettableElementState
impl PartialEq for SettableElementState
Source§impl TypeMarker for SettableElementState
impl TypeMarker for SettableElementState
Source§type Owned = SettableElementState
type Owned = SettableElementState
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for SettableElementState
impl ValueTypeMarker for SettableElementState
Source§type Borrowed<'a> = &'a SettableElementState
type Borrowed<'a> = &'a SettableElementState
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for SettableElementState
impl StructuralPartialEq for SettableElementState
Auto Trait Implementations§
impl Freeze for SettableElementState
impl RefUnwindSafe for SettableElementState
impl Send for SettableElementState
impl Sync for SettableElementState
impl Unpin for SettableElementState
impl UnwindSafe for SettableElementState
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)