pub struct ServiceConfig {
pub service_id: Option<u8>,
pub enterprise_number: Option<u32>,
pub service_data_length: Option<u8>,
pub service_data: Option<Vec<u8>>,
pub server_config: Option<ServerConfig>,
/* private fields */
}Expand description
Represents a Service configuration.
Derived from otServiceConfig(https://openthread.io/reference/struct/ot-service-config)
Fields§
§service_id: Option<u8>The service ID.
Required.
enterprise_number: Option<u32>IANA Enterprise Number.
Required.
service_data_length: Option<u8>Length of service data.
Required.
service_data: Option<Vec<u8>>Service data bytes.
Required.
server_config: Option<ServerConfig>The Server configuration.
Required.
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
Returns a duplicate 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 ServiceConfig
impl Debug for ServiceConfig
Source§impl<D: ResourceDialect> Decode<ServiceConfig, D> for ServiceConfig
impl<D: ResourceDialect> Decode<ServiceConfig, D> for ServiceConfig
Source§impl Default for ServiceConfig
impl Default for ServiceConfig
Source§fn default() -> ServiceConfig
fn default() -> ServiceConfig
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<ServiceConfig, D> for &ServiceConfig
impl<D: ResourceDialect> Encode<ServiceConfig, D> for &ServiceConfig
Source§impl PartialEq for ServiceConfig
impl PartialEq for ServiceConfig
Source§impl TypeMarker for ServiceConfig
impl TypeMarker for ServiceConfig
Source§type Owned = ServiceConfig
type Owned = ServiceConfig
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.Source§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 moreSource§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 ServiceConfig
impl ValueTypeMarker for ServiceConfig
Source§type Borrowed<'a> = &'a ServiceConfig
type Borrowed<'a> = &'a ServiceConfig
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 ServiceConfig
impl StructuralPartialEq for ServiceConfig
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnwindSafe for ServiceConfig
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§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