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<D: ResourceDialect> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptions
impl<D: ResourceDialect> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptions
Source§impl<D: ResourceDialect> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptions
impl<D: ResourceDialect> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptions
impl Persistable for ServiceInstancePublicationOptions
impl StructuralPartialEq for ServiceInstancePublicationOptions
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 more