pub struct SrpConf<'a> {
pub host_name: &'a str,
pub host_addrs: &'a [Ipv6Addr],
pub ttl: u32,
pub default_lease_secs: u32,
pub default_key_lease_secs: u32,
}Expand description
The SRP configuration of the OpenThread stack.
Fields§
§host_name: &'a strSRP hostname
host_addrs: &'a [Ipv6Addr]SRP host Ipv6 addresses. If empty, the SRP implementation will automatically set the host addresses by itself, using non-link-local addresses, once these become available.
ttl: u32SRP TTL (Time To Live) value.
default_lease_secs: u32Default lease time for SRP services if they specify 0 for their lease time. Set to 0 to use the OpenThread default value.
default_key_lease_secs: u32Default key lease time for SRP services’ keys if they specify 0 for their key lease time. Set to 0 to use the OpenThread default value.
Implementations§
Trait Implementations§
impl<'a> Eq for SrpConf<'a>
impl<'a> StructuralPartialEq for SrpConf<'a>
Auto Trait Implementations§
impl<'a> Freeze for SrpConf<'a>
impl<'a> RefUnwindSafe for SrpConf<'a>
impl<'a> Send for SrpConf<'a>
impl<'a> Sync for SrpConf<'a>
impl<'a> Unpin for SrpConf<'a>
impl<'a> UnsafeUnpin for SrpConf<'a>
impl<'a> UnwindSafe for SrpConf<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)