pub struct Element {
pub id: Option<u64>,
pub type_: Option<ElementType>,
pub type_specific: Option<TypeSpecificElement>,
pub can_disable: Option<bool>,
pub description: Option<String>,
/* 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>
If included, type-specific parameters for the processing element.
Optional.
can_disable: Option<bool>
If included and true, the processing element can be disabled via
ElementSetState
.
If not included or false, the processing element is always enabled.
Optional.
description: Option<String>
If included, a textual description of the processing element.
Optional.
Trait Implementations§
source§impl Decode<Element> for Element
impl Decode<Element> for Element
source§impl PartialEq for Element
impl PartialEq for Element
source§impl TypeMarker for Element
impl TypeMarker for Element
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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
impl Persistable for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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