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
.Auto Trait Implementations§
impl Freeze for SrpServerService
impl RefUnwindSafe for SrpServerService
impl Send for SrpServerService
impl Sync for SrpServerService
impl Unpin for SrpServerService
impl UnwindSafe for SrpServerService
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
§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> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more