#[repr(transparent)]pub struct SrpServerLeaseInfo(pub otSrpServerLeaseInfo);
Expand description
This structure represents the SRP Server Lease Info.
Functional equivalent of otsys::otSrpServerLeaseInfo
.
Tuple Fields§
§0: otSrpServerLeaseInfo
Implementations§
Source§impl SrpServerLeaseInfo
impl SrpServerLeaseInfo
Sourcepub fn lease(&self) -> MonotonicDuration
pub fn lease(&self) -> MonotonicDuration
The lease time of a host/service in milliseconds.
Sourcepub fn key_lease(&self) -> MonotonicDuration
pub fn key_lease(&self) -> MonotonicDuration
The key lease time of a host/service in milliseconds.
Sourcepub fn remaining_lease(&self) -> MonotonicDuration
pub fn remaining_lease(&self) -> MonotonicDuration
The remaining lease time of the host/service in milliseconds.
Sourcepub fn remaining_key_lease(&self) -> MonotonicDuration
pub fn remaining_key_lease(&self) -> MonotonicDuration
The remaining key lease time of a host/service in milliseconds.
Trait Implementations§
Source§impl Clone for SrpServerLeaseInfo
impl Clone for SrpServerLeaseInfo
Source§fn clone(&self) -> SrpServerLeaseInfo
fn clone(&self) -> SrpServerLeaseInfo
Returns a copy 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 SrpServerLeaseInfo
impl Debug for SrpServerLeaseInfo
Source§impl Default for SrpServerLeaseInfo
impl Default for SrpServerLeaseInfo
Source§fn default() -> SrpServerLeaseInfo
fn default() -> SrpServerLeaseInfo
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a SrpServerLeaseInfo> for &'a otSrpServerLeaseInfo
impl<'a> From<&'a SrpServerLeaseInfo> for &'a otSrpServerLeaseInfo
Source§fn from(x: &'a SrpServerLeaseInfo) -> Self
fn from(x: &'a SrpServerLeaseInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otSrpServerLeaseInfo> for &'a SrpServerLeaseInfo
impl<'a> From<&'a otSrpServerLeaseInfo> for &'a SrpServerLeaseInfo
Source§impl From<SrpServerLeaseInfo> for otSrpServerLeaseInfo
impl From<SrpServerLeaseInfo> for otSrpServerLeaseInfo
Source§fn from(x: SrpServerLeaseInfo) -> Self
fn from(x: SrpServerLeaseInfo) -> Self
Converts to this type from the input type.
Source§impl From<otSrpServerLeaseInfo> for SrpServerLeaseInfo
impl From<otSrpServerLeaseInfo> for SrpServerLeaseInfo
Source§impl OtCastable for SrpServerLeaseInfo
impl OtCastable for SrpServerLeaseInfo
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 SrpServerLeaseInfo
impl RefUnwindSafe for SrpServerLeaseInfo
impl Send for SrpServerLeaseInfo
impl Sync for SrpServerLeaseInfo
impl Unpin for SrpServerLeaseInfo
impl UnwindSafe for SrpServerLeaseInfo
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)