pub struct ServiceInstance {
pub service: Option<String>,
pub instance: Option<String>,
pub ipv4_endpoint: Option<Ipv4SocketAddress>,
pub ipv6_endpoint: Option<Ipv6SocketAddress>,
pub text: Option<Vec<String>>,
pub srv_priority: Option<u16>,
pub srv_weight: Option<u16>,
pub target: Option<String>,
pub addresses: Option<Vec<SocketAddress>>,
pub text_strings: Option<Vec<Vec<u8>>>,
/* private fields */
}
Expand description
Describes a service instance.
Fields§
§service: Option<String>
The name of the service.
instance: Option<String>
The name of the service instance.
ipv4_endpoint: Option<Ipv4SocketAddress>
IPv4 socket address for the service. May be empty. Deprecated: use addresses
.
ipv6_endpoint: Option<Ipv6SocketAddress>
IPv6 socket address for the service. May be empty. Deprecated: use addresses
.
text: Option<Vec<String>>
Text strings describing the instance. Deprecated: use text_strings
.
srv_priority: Option<u16>
The priority of the SRV resource record for this publication. See RFC6763 for details.
srv_weight: Option<u16>
The weight of the SRV resource record for this publication. See RFC6763 for details.
target: Option<String>
The domain name of the target host.
addresses: Option<Vec<SocketAddress>>
The socket addresses for the service instance.
text_strings: Option<Vec<Vec<u8>>>
Text strings describing the instance.
Trait Implementations§
Source§impl Clone for ServiceInstance
impl Clone for ServiceInstance
Source§fn clone(&self) -> ServiceInstance
fn clone(&self) -> ServiceInstance
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 ServiceInstance
impl Debug for ServiceInstance
Source§impl<D: ResourceDialect> Decode<ServiceInstance, D> for ServiceInstance
impl<D: ResourceDialect> Decode<ServiceInstance, D> for ServiceInstance
Source§impl Default for ServiceInstance
impl Default for ServiceInstance
Source§fn default() -> ServiceInstance
fn default() -> ServiceInstance
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<ServiceInstance, D> for &ServiceInstance
impl<D: ResourceDialect> Encode<ServiceInstance, D> for &ServiceInstance
Source§impl PartialEq for ServiceInstance
impl PartialEq for ServiceInstance
Source§impl TypeMarker for ServiceInstance
impl TypeMarker for ServiceInstance
Source§type Owned = ServiceInstance
type Owned = ServiceInstance
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
.§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 more§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 ServiceInstance
impl ValueTypeMarker for ServiceInstance
Source§type Borrowed<'a> = &'a ServiceInstance
type Borrowed<'a> = &'a ServiceInstance
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 ServiceInstance
impl StructuralPartialEq for ServiceInstance
Auto Trait Implementations§
impl Freeze for ServiceInstance
impl RefUnwindSafe for ServiceInstance
impl Send for ServiceInstance
impl Sync for ServiceInstance
impl Unpin for ServiceInstance
impl UnwindSafe for ServiceInstance
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§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
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
)