pub enum JoinParams {
ProvisioningParameter(ProvisioningParams),
JoinerParameter(JoinerCommissioningParams),
// some variants omitted
}
Expand description
Parameters for DeviceExtra::JoinNetwork command.
Variants§
ProvisioningParameter(ProvisioningParams)
Attempts to find and join a known pre-existing network.
JoinerParameter(JoinerCommissioningParams)
Attempts to find and join an unknown pre-existing network that is configured to accept and provision devices with the given shared secret, or PSKd. This allows new devices to join existing networks without knowing the credentials for the specific network.
Implementations§
Source§impl JoinParams
impl JoinParams
pub fn ordinal(&self) -> u64
pub fn unknown_variant_for_testing() -> Self
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for JoinParams
impl Clone for JoinParams
Source§fn clone(&self) -> JoinParams
fn clone(&self) -> JoinParams
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 JoinParams
impl Debug for JoinParams
Source§impl<D: ResourceDialect> Decode<JoinParams, D> for JoinParams
impl<D: ResourceDialect> Decode<JoinParams, D> for JoinParams
Source§impl<D: ResourceDialect> Encode<JoinParams, D> for &JoinParams
impl<D: ResourceDialect> Encode<JoinParams, D> for &JoinParams
Source§impl PartialEq for JoinParams
impl PartialEq for JoinParams
Source§impl TypeMarker for JoinParams
impl TypeMarker for JoinParams
Source§type Owned = JoinParams
type Owned = JoinParams
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 JoinParams
impl ValueTypeMarker for JoinParams
Source§type Borrowed<'a> = &'a JoinParams
type Borrowed<'a> = &'a JoinParams
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 JoinParams
Auto Trait Implementations§
impl Freeze for JoinParams
impl RefUnwindSafe for JoinParams
impl Send for JoinParams
impl Sync for JoinParams
impl Unpin for JoinParams
impl UnwindSafe for JoinParams
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
)