pub struct SrpServerHost(/* private fields */);
Expand description
This opaque type (only used by reference) represents a SRP host.
Functional equivalent of otsys::otSrpServerHost
.
Implementations§
Source§impl SrpServerHost
impl SrpServerHost
Sourcepub fn addresses(&self) -> &[Ip6Address]
pub fn addresses(&self) -> &[Ip6Address]
Functional equivalent of
otsys::otSrpServerHostGetAddresses
.
Sourcepub fn matches_full_name_cstr(&self, full_name: &CStr) -> bool
pub fn matches_full_name_cstr(&self, full_name: &CStr) -> bool
Functional equivalent of
otsys::otSrpServerHostMatchesFullName
.
Sourcepub fn full_name_cstr(&self) -> &CStr
pub fn full_name_cstr(&self) -> &CStr
Functional equivalent of
otsys::otSrpServerHostGetFullName
.
Sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Functional equivalent of
otsys::otSrpServerHostIsDeleted
.
Sourcepub fn get_lease_info(&self, lease_info: &mut SrpServerLeaseInfo)
pub fn get_lease_info(&self, lease_info: &mut SrpServerLeaseInfo)
Functional equivalent of
otsys::otSrpServerHostGetLeaseInfo
.
Sourcepub fn next_service<'a>(
&'a self,
prev: Option<&'a SrpServerService>,
) -> Option<&'a SrpServerService>
pub fn next_service<'a>( &'a self, prev: Option<&'a SrpServerService>, ) -> Option<&'a SrpServerService>
Functional equivalent of
otsys::otSrpServerHostGetNextService
.
Sourcepub fn services(&self) -> SrpServerServiceIterator<'_> ⓘ
pub fn services(&self) -> SrpServerServiceIterator<'_> ⓘ
Returns an iterator over all of the services for this host.
Trait Implementations§
Source§impl Debug for SrpServerHost
impl Debug for SrpServerHost
Source§impl<'a> From<&'a SrpServerHost> for &'a otSrpServerHost
impl<'a> From<&'a SrpServerHost> for &'a otSrpServerHost
Source§fn from(x: &'a SrpServerHost) -> Self
fn from(x: &'a SrpServerHost) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otSrpServerHost> for &'a SrpServerHost
impl<'a> From<&'a otSrpServerHost> for &'a SrpServerHost
Source§impl OtCastable for SrpServerHost
impl OtCastable for SrpServerHost
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 SrpServerHost
impl RefUnwindSafe for SrpServerHost
impl Send for SrpServerHost
impl Sync for SrpServerHost
impl Unpin for SrpServerHost
impl UnwindSafe for SrpServerHost
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