Struct CodecProperties
pub struct CodecProperties {
pub is_input: Option<bool>,
pub manufacturer: Option<String>,
pub product: Option<String>,
pub unique_id: Option<[u8; 16]>,
pub plug_detect_capabilities: Option<PlugDetectCapabilities>,
/* private fields */
}
Fields§
§is_input: Option<bool>
Driver type is input (true) or output (false) If not included, then the driver may be used for both input and output.
Optional.
manufacturer: Option<String>
UI string for the manufacturer name. If not included, the manufacturer is unspecified. If included, this string must be non-empty.
Optional.
product: Option<String>
UI string for the product name. If not included, the product name is unspecified. If included, this string must be non-empty.
Optional.
unique_id: Option<[u8; 16]>
Unique identifier for the codec. If not included, there is no unique id for the Codec.
Optional.
plug_detect_capabilities: Option<PlugDetectCapabilities>
Plug Detect Capabilities.
Required.
Trait Implementations§
§impl Clone for CodecProperties
impl Clone for CodecProperties
§fn clone(&self) -> CodecProperties
fn clone(&self) -> CodecProperties
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 more§impl Debug for CodecProperties
impl Debug for CodecProperties
§impl<D> Decode<CodecProperties, D> for CodecPropertieswhere
D: ResourceDialect,
impl<D> Decode<CodecProperties, D> for CodecPropertieswhere
D: ResourceDialect,
§fn new_empty() -> CodecProperties
fn new_empty() -> CodecProperties
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for CodecProperties
impl Default for CodecProperties
§fn default() -> CodecProperties
fn default() -> CodecProperties
Returns the “default value” for a type. Read more
§impl<D> Encode<CodecProperties, D> for &CodecPropertieswhere
D: ResourceDialect,
impl<D> Encode<CodecProperties, D> for &CodecPropertieswhere
D: ResourceDialect,
§impl PartialEq for CodecProperties
impl PartialEq for CodecProperties
§impl TypeMarker for CodecProperties
impl TypeMarker for CodecProperties
§type Owned = CodecProperties
type Owned = CodecProperties
The owned Rust type which this FIDL type decodes into.
§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.
§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.§impl ValueTypeMarker for CodecProperties
impl ValueTypeMarker for CodecProperties
§type Borrowed<'a> = &'a CodecProperties
type Borrowed<'a> = &'a CodecProperties
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<CodecProperties as TypeMarker>::Owned,
) -> <CodecProperties as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CodecProperties as TypeMarker>::Owned, ) -> <CodecProperties as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Persistable for CodecProperties
impl StructuralPartialEq for CodecProperties
Auto Trait Implementations§
impl Freeze for CodecProperties
impl RefUnwindSafe for CodecProperties
impl Send for CodecProperties
impl Sync for CodecProperties
impl Unpin for CodecProperties
impl UnwindSafe for CodecProperties
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