pub struct CreateIfaceRequest {
pub role: WlanMacRole,
pub mlme_channel: Option<Channel>,
pub init_sta_addr: [u8; 6],
}
Fields§
§role: WlanMacRole
§mlme_channel: Option<Channel>
§init_sta_addr: [u8; 6]
Trait Implementations§
Source§impl Debug for CreateIfaceRequest
impl Debug for CreateIfaceRequest
Source§impl Decode<CreateIfaceRequest, DefaultFuchsiaResourceDialect> for CreateIfaceRequest
impl Decode<CreateIfaceRequest, DefaultFuchsiaResourceDialect> for CreateIfaceRequest
Source§impl Encode<CreateIfaceRequest, DefaultFuchsiaResourceDialect> for &mut CreateIfaceRequest
impl Encode<CreateIfaceRequest, DefaultFuchsiaResourceDialect> for &mut CreateIfaceRequest
Source§impl<T0: Encode<WlanMacRole, DefaultFuchsiaResourceDialect>, T1: Encode<Optional<HandleType<Channel, { _ }, 2147483648>>, DefaultFuchsiaResourceDialect>, T2: Encode<Array<u8, 6>, DefaultFuchsiaResourceDialect>> Encode<CreateIfaceRequest, DefaultFuchsiaResourceDialect> for (T0, T1, T2)
impl<T0: Encode<WlanMacRole, DefaultFuchsiaResourceDialect>, T1: Encode<Optional<HandleType<Channel, { _ }, 2147483648>>, DefaultFuchsiaResourceDialect>, T2: Encode<Array<u8, 6>, DefaultFuchsiaResourceDialect>> Encode<CreateIfaceRequest, DefaultFuchsiaResourceDialect> for (T0, T1, T2)
Source§impl Hash for CreateIfaceRequest
impl Hash for CreateIfaceRequest
Source§impl Ord for CreateIfaceRequest
impl Ord for CreateIfaceRequest
Source§fn cmp(&self, other: &CreateIfaceRequest) -> Ordering
fn cmp(&self, other: &CreateIfaceRequest) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CreateIfaceRequest
impl PartialEq for CreateIfaceRequest
Source§impl PartialOrd for CreateIfaceRequest
impl PartialOrd for CreateIfaceRequest
Source§impl ResourceTypeMarker for CreateIfaceRequest
impl ResourceTypeMarker for CreateIfaceRequest
Source§type Borrowed<'a> = &'a mut CreateIfaceRequest
type Borrowed<'a> = &'a mut CreateIfaceRequest
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for CreateIfaceRequest
impl TypeMarker for CreateIfaceRequest
Source§type Owned = CreateIfaceRequest
type Owned = CreateIfaceRequest
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.impl Eq for CreateIfaceRequest
impl Standalone<DefaultFuchsiaResourceDialect> for CreateIfaceRequest
impl StructuralPartialEq for CreateIfaceRequest
Auto Trait Implementations§
impl Freeze for CreateIfaceRequest
impl RefUnwindSafe for CreateIfaceRequest
impl Send for CreateIfaceRequest
impl Sync for CreateIfaceRequest
impl Unpin for CreateIfaceRequest
impl UnwindSafe for CreateIfaceRequest
Blanket Implementations§
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