pub struct SrpServerService {
pub instance_name: Option<String>,
pub deleted: Option<bool>,
pub subtypes: Option<Vec<String>>,
pub port: Option<u16>,
pub priority: Option<u16>,
pub weight: Option<u16>,
pub ttl: Option<i64>,
pub lease: Option<i64>,
pub key_lease: Option<i64>,
pub txt_data: Option<Vec<DnsTxtEntry>>,
pub host: Option<SrpServerHost>,
/* private fields */
}Expand description
Represents a SRP service.
Fields§
§instance_name: Option<String>The full service instance name of the service.
Required.
deleted: Option<bool>Whether the SRP service host has been deleted.
Required.
subtypes: Option<Vec<String>>The sub-type service name (full name) of the service.
The maximum number of service subtype labels in the SRP service is 6, see OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_SERVICE_MAX_SUB_TYPES.
The maximum length for a single DNS label (sub-type) is 63 characters.
Required.
port: Option<u16>The port of the service instance.
Required.
priority: Option<u16>The priority of the service instance.
Required.
weight: Option<u16>The weight of the service instance.
Required.
ttl: Option<i64>The TTL of the service instance.
Required.
lease: Option<i64>The lease time of a service.
Required.
key_lease: Option<i64>The key lease time of a host/service.
Required.
txt_data: Option<Vec<DnsTxtEntry>>The TXT record data.
Required.
host: Option<SrpServerHost>The information of a service host.
Required.
Trait Implementations§
Source§impl Clone for SrpServerService
impl Clone for SrpServerService
Source§fn clone(&self) -> SrpServerService
fn clone(&self) -> SrpServerService
Returns a duplicate 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 SrpServerService
impl Debug for SrpServerService
Source§impl<D: ResourceDialect> Decode<SrpServerService, D> for SrpServerService
impl<D: ResourceDialect> Decode<SrpServerService, D> for SrpServerService
Source§impl Default for SrpServerService
impl Default for SrpServerService
Source§fn default() -> SrpServerService
fn default() -> SrpServerService
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<SrpServerService, D> for &SrpServerService
impl<D: ResourceDialect> Encode<SrpServerService, D> for &SrpServerService
Source§impl PartialEq for SrpServerService
impl PartialEq for SrpServerService
Source§impl TypeMarker for SrpServerService
impl TypeMarker for SrpServerService
Source§type Owned = SrpServerService
type Owned = SrpServerService
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for SrpServerService
impl ValueTypeMarker for SrpServerService
Source§type Borrowed<'a> = &'a SrpServerService
type Borrowed<'a> = &'a SrpServerService
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreimpl Persistable for SrpServerService
impl StructuralPartialEq for SrpServerService
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> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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