pub struct Element {
pub id: Option<u64>,
pub type_: Option<ElementType>,
pub type_specific: Option<TypeSpecificElement>,
pub description: Option<String>,
pub can_stop: Option<bool>,
pub can_bypass: Option<bool>,
/* private fields */
}Fields§
§id: Option<u64>Unique ID for this element. The scope of this id is only within the SignalProcessing
protocol lifespan, i.e. until the channel associated with the protocol is closed.
Required.
type_: Option<ElementType>Processing element type.
Required.
type_specific: Option<TypeSpecificElement>Type-specific parameters for the processing element.
Required for ElementTypes DAI_INTERCONNECT, DYNAMICS, EQUALIZER, GAIN, VENDOR_SPECIFIC.
Invalid if specified for elements of type AUTOMATIC_GAIN_CONTROL, AUTOMATIC_GAIN_LIMITER,
CONNECTION_POINT, DELAY, MUTE, RING_BUFFER or SAMPLE_RATE_CONVERSION.
description: Option<String>If included, a textual description of the processing element.
Optional. If present, must not be empty.
can_stop: Option<bool>If true, the processing element can be stopped via SetElementState.
If not included or false, the processing element is always started.
Optional.
can_bypass: Option<bool>If true, the processing element can be bypassed via SetElementState.
If not included or false, the processing element cannot be bypassed.
By definition, elements of type DAI_INTERCONNECT or RING_BUFFER cannot be bypassed and
must never set this field to true.
Optional.
Trait Implementations§
Source§impl<D> Decode<Element, D> for Elementwhere
D: ResourceDialect,
impl<D> Decode<Element, D> for Elementwhere
D: ResourceDialect,
Source§impl TypeMarker for Element
impl TypeMarker for Element
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.Source§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 moreSource§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 Element
impl ValueTypeMarker for Element
Source§type Borrowed<'a> = &'a Element
type Borrowed<'a> = &'a Element
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<Element as TypeMarker>::Owned,
) -> <Element as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Element as TypeMarker>::Owned, ) -> <Element as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.impl Persistable for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
Source§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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]