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§
Source§impl Clone for CodecProperties
impl Clone for CodecProperties
Source§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 moreSource§impl Debug for CodecProperties
impl Debug for CodecProperties
Source§impl<D: ResourceDialect> Decode<CodecProperties, D> for CodecProperties
impl<D: ResourceDialect> Decode<CodecProperties, D> for CodecProperties
Source§impl Default for CodecProperties
impl Default for CodecProperties
Source§fn default() -> CodecProperties
fn default() -> CodecProperties
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<CodecProperties, D> for &CodecProperties
impl<D: ResourceDialect> Encode<CodecProperties, D> for &CodecProperties
Source§impl PartialEq for CodecProperties
impl PartialEq for CodecProperties
Source§impl TypeMarker for CodecProperties
impl TypeMarker for CodecProperties
Source§type Owned = CodecProperties
type Owned = CodecProperties
The owned Rust type which this FIDL type decodes into.
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 CodecProperties
impl ValueTypeMarker for CodecProperties
Source§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 moreimpl 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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)