Struct fidl_fuchsia_lowpan_device::Identity
source · pub struct Identity {
pub raw_name: Option<Vec<u8>>,
pub net_type: Option<String>,
pub channel: Option<u16>,
pub panid: Option<u16>,
pub mesh_local_prefix: Option<Ipv6AddressWithPrefix>,
pub xpanid: Option<[u8; 8]>,
/* private fields */
}
Fields§
§raw_name: Option<Vec<u8>>
The raw bytes for the network name. This is typically a StringPrep’d UTF8 encoding.
Note that extra care must be taken when displaying this value to users, since there are many ways to make visually similar UTF8 strings that have differing bytecode representations.
net_type: Option<String>
String identifying the type of network.
Well-known protocol ids are associated with
specific string values (like “org.threadgroup.std.thread”
or “org.zigbee.std.zigbee-ip”). For unknown protocol ids,
the string will map to something like
fuchsia.lowpan.net_type.802.15.4.pid.XX
, where XX
is
the value of the protocol id from a 802.14.5 beacon.
This field is optional when joining, forming, or provisioning.
channel: Option<u16>
Channel Index.
panid: Option<u16>
PANID for 802.14.5-based networks (or the equivalent).
mesh_local_prefix: Option<Ipv6AddressWithPrefix>
IPv6 Mesh-local prefix.
This parameter allows you to determine the mesh-local IPv6 prefix for the current network, or to specify one when provisioning the interface for a network or forming a new network.
The prefix length is always 64 bits, so only the upper 64 bits of the value are used: the least significant bits must be ignored when read and zero when set.
This field is ignored when supplied to JoinNetwork()
.
xpanid: Option<[u8; 8]>
Extended PANID.
Trait Implementations§
source§impl<D: ResourceDialect> Decode<Identity, D> for Identity
impl<D: ResourceDialect> Decode<Identity, D> for Identity
source§impl PartialEq for Identity
impl PartialEq for Identity
source§impl TypeMarker for Identity
impl TypeMarker for Identity
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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 Identity
impl ValueTypeMarker for Identity
impl Persistable for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)