#[repr(transparent)]pub struct ServiceConfig(pub otServiceConfig);Expand description
Data type representing a service configuration.
Functional equivalent of otsys::otServiceConfig.
Tuple Fields§
§0: otServiceConfigImplementations§
Source§impl ServiceConfig
impl ServiceConfig
Sourcepub fn enterprise_number(&self) -> u32
pub fn enterprise_number(&self) -> u32
IANA Enterprise Number.
Sourcepub fn server_config(&self) -> &ServerConfig
pub fn server_config(&self) -> &ServerConfig
The Server configuration.
Sourcepub fn service_data(&self) -> [u8; 252]
pub fn service_data(&self) -> [u8; 252]
Service data bytes.
Sourcepub fn service_data_len(&self) -> u8
pub fn service_data_len(&self) -> u8
Length of service data.
Sourcepub fn service_id(&self) -> u8
pub fn service_id(&self) -> u8
Service ID (when iterating over the Network Data).
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 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<'a> From<&'a ServiceConfig> for &'a otServiceConfig
impl<'a> From<&'a ServiceConfig> for &'a otServiceConfig
Source§fn from(x: &'a ServiceConfig) -> Self
fn from(x: &'a ServiceConfig) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otServiceConfig> for &'a ServiceConfig
impl<'a> From<&'a otServiceConfig> for &'a ServiceConfig
Source§fn from(x: &'a otServiceConfig) -> Self
fn from(x: &'a otServiceConfig) -> Self
Converts to this type from the input type.
Source§impl From<ServiceConfig> for otServiceConfig
impl From<ServiceConfig> for otServiceConfig
Source§fn from(x: ServiceConfig) -> Self
fn from(x: ServiceConfig) -> Self
Converts to this type from the input type.
Source§impl From<otServiceConfig> for ServiceConfig
impl From<otServiceConfig> for ServiceConfig
Source§fn from(x: otServiceConfig) -> Self
fn from(x: otServiceConfig) -> Self
Converts to this type from the input type.
Source§impl OtCastable for ServiceConfig
impl OtCastable for ServiceConfig
Source§type OtType = otServiceConfig
type OtType = otServiceConfig
Original OpenThread Type.
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self.Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnsafeUnpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]