Struct ServiceInstancePublicationOptions
pub struct ServiceInstancePublicationOptions {
pub media: Option<Media>,
pub ip_versions: Option<IpVersions>,
pub perform_probe: Option<bool>,
/* private fields */
}
Expand description
Options for ServiceInstancePublisher.PublishServiceInstance
.
Fields§
§media: Option<Media>
The media (wired, wireless, both) of the interfaces on which the service instance should
be published. The default media
value depends on whether the ServiceInstancePublisher
is associated with a proxy host. If so, the default matches the media
value of the
ProxyHostPublicationOptions
for the proxy host. If not, the default is both wired and
wireless media.
ip_versions: Option<IpVersions>
The IP versions (V4, V6, both) with which the service instance should
be published. The default ip_versions
value depends on whether the
ServiceInstancePublisher
is associated with a proxy host. If so, the default matches the
ip_versions
value of the ProxyHostPublicationOptions
for the proxy host. If not, the
default value is both IPv4 and IPv6.
perform_probe: Option<bool>
Whether a probe for conflicting instances should be performed prior to publishing the instance. If this value is not supplied, probing is performed.
Trait Implementations§
§impl Clone for ServiceInstancePublicationOptions
impl Clone for ServiceInstancePublicationOptions
§fn clone(&self) -> ServiceInstancePublicationOptions
fn clone(&self) -> ServiceInstancePublicationOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ServiceInstancePublicationOptions
impl Debug for ServiceInstancePublicationOptions
§impl<D> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptionswhere
D: ResourceDialect,
impl<D> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptionswhere
D: ResourceDialect,
§fn new_empty() -> ServiceInstancePublicationOptions
fn new_empty() -> ServiceInstancePublicationOptions
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for ServiceInstancePublicationOptions
impl Default for ServiceInstancePublicationOptions
§fn default() -> ServiceInstancePublicationOptions
fn default() -> ServiceInstancePublicationOptions
§impl<D> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptionswhere
D: ResourceDialect,
impl<D> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptionswhere
D: ResourceDialect,
§impl TypeMarker for ServiceInstancePublicationOptions
impl TypeMarker for ServiceInstancePublicationOptions
§type Owned = ServiceInstancePublicationOptions
type Owned = ServiceInstancePublicationOptions
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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.§impl ValueTypeMarker for ServiceInstancePublicationOptions
impl ValueTypeMarker for ServiceInstancePublicationOptions
§type Borrowed<'a> = &'a ServiceInstancePublicationOptions
type Borrowed<'a> = &'a ServiceInstancePublicationOptions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ServiceInstancePublicationOptions as TypeMarker>::Owned,
) -> <ServiceInstancePublicationOptions as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ServiceInstancePublicationOptions as TypeMarker>::Owned, ) -> <ServiceInstancePublicationOptions as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.