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§
Source§impl Clone for ServiceInstancePublicationOptions
impl Clone for ServiceInstancePublicationOptions
Source§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 moreSource§impl<D> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptionswhere
D: ResourceDialect,
impl<D> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptionswhere
D: ResourceDialect,
Source§fn new_empty() -> ServiceInstancePublicationOptions
fn new_empty() -> ServiceInstancePublicationOptions
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for ServiceInstancePublicationOptions
impl Default for ServiceInstancePublicationOptions
Source§fn default() -> ServiceInstancePublicationOptions
fn default() -> ServiceInstancePublicationOptions
Source§impl<D> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptionswhere
D: ResourceDialect,
impl<D> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptionswhere
D: ResourceDialect,
Source§impl PartialEq for ServiceInstancePublicationOptions
impl PartialEq for ServiceInstancePublicationOptions
Source§fn eq(&self, other: &ServiceInstancePublicationOptions) -> bool
fn eq(&self, other: &ServiceInstancePublicationOptions) -> bool
self and other values to be equal, and is used by ==.Source§impl TypeMarker for ServiceInstancePublicationOptions
impl TypeMarker for ServiceInstancePublicationOptions
Source§type Owned = ServiceInstancePublicationOptions
type Owned = ServiceInstancePublicationOptions
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§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 moreSource§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.Source§impl ValueTypeMarker for ServiceInstancePublicationOptions
impl ValueTypeMarker for ServiceInstancePublicationOptions
Source§type Borrowed<'a> = &'a ServiceInstancePublicationOptions
type Borrowed<'a> = &'a ServiceInstancePublicationOptions
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§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.