pub struct SrpServerService(/* private fields */);
Expand description
This opaque type (only used by reference) represents a SRP service.
Functional equivalent of otsys::otSrpServerService
.
Implementations§
Source§impl SrpServerService
impl SrpServerService
Sourcepub fn port(&self) -> u16
pub fn port(&self) -> u16
Functional equivalent of
otsys::otSrpServerServiceGetPort
.
Sourcepub fn priority(&self) -> u16
pub fn priority(&self) -> u16
Functional equivalent of
otsys::otSrpServerServiceGetPriority
.
Sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Functional equivalent of
otsys::otSrpServerServiceIsDeleted
.
Sourcepub fn get_lease_info(&self, lease_info: &mut SrpServerLeaseInfo)
pub fn get_lease_info(&self, lease_info: &mut SrpServerLeaseInfo)
Functional equivalent of
otsys::otSrpServerServiceGetLeaseInfo
.
Sourcepub fn subtypes(&self) -> SrpServerServiceSubtypeIterator<'_> ⓘ
pub fn subtypes(&self) -> SrpServerServiceSubtypeIterator<'_> ⓘ
Returns an iterator over all of the subtypes.
Sourcepub fn number_of_subtypes(&self) -> u16
pub fn number_of_subtypes(&self) -> u16
Functional equivalent of
otsys::otSrpServerServiceGetNumberOfSubTypes
.
Sourcepub fn subtype_service_name_at(&self, i: u16) -> Option<&CStr>
pub fn subtype_service_name_at(&self, i: u16) -> Option<&CStr>
Functional equivalent of
otsys::otSrpServerServiceGetSubTypeServiceNameAt
.
Sourcepub fn txt_data(&self) -> &[u8] ⓘ
pub fn txt_data(&self) -> &[u8] ⓘ
Functional equivalent of
otsys::otSrpServerServiceGetTxtData
.
Sourcepub fn txt_entries(&self) -> DnsTxtEntryIterator<'_> ⓘ
pub fn txt_entries(&self) -> DnsTxtEntryIterator<'_> ⓘ
Returns iterator over all the DNS TXT entries.
Sourcepub fn weight(&self) -> u16
pub fn weight(&self) -> u16
Functional equivalent of
otsys::otSrpServerServiceGetWeight
.
Sourcepub fn service_name_cstr(&self) -> &CStr
pub fn service_name_cstr(&self) -> &CStr
Functional equivalent of
otsys::otSrpServerServiceGetServiceName
.
Sourcepub fn instance_name_cstr(&self) -> &CStr
pub fn instance_name_cstr(&self) -> &CStr
Functional equivalent of
otsys::otSrpServerServiceGetInstanceName
.
Sourcepub fn instance_label_cstr(&self) -> &CStr
pub fn instance_label_cstr(&self) -> &CStr
Functional equivalent of
otsys::otSrpServerServiceGetInstanceLabel
.
Trait Implementations§
Source§impl Debug for SrpServerService
impl Debug for SrpServerService
Source§impl<'a> From<&'a SrpServerService> for &'a otSrpServerService
impl<'a> From<&'a SrpServerService> for &'a otSrpServerService
Source§fn from(x: &'a SrpServerService) -> Self
fn from(x: &'a SrpServerService) -> Self
Source§impl<'a> From<&'a otSrpServerService> for &'a SrpServerService
impl<'a> From<&'a otSrpServerService> for &'a SrpServerService
Source§impl OtCastable for SrpServerService
impl OtCastable for SrpServerService
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Self::OtType
instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
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>
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>
Self::OtType
. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Self::OtType
.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Self::OtType
.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Self
.