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: ResourceDialect> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptions
impl<D: ResourceDialect> Decode<ServiceInstancePublicationOptions, D> for ServiceInstancePublicationOptions
Source§impl Default for ServiceInstancePublicationOptions
impl Default for ServiceInstancePublicationOptions
Source§fn default() -> ServiceInstancePublicationOptions
fn default() -> ServiceInstancePublicationOptions
Source§impl<D: ResourceDialect> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptions
impl<D: ResourceDialect> Encode<ServiceInstancePublicationOptions, D> for &ServiceInstancePublicationOptions
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
.§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.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 moreimpl Persistable for ServiceInstancePublicationOptions
impl StructuralPartialEq for ServiceInstancePublicationOptions
Auto Trait Implementations§
impl Freeze for ServiceInstancePublicationOptions
impl RefUnwindSafe for ServiceInstancePublicationOptions
impl Send for ServiceInstancePublicationOptions
impl Sync for ServiceInstancePublicationOptions
impl Unpin for ServiceInstancePublicationOptions
impl UnwindSafe for ServiceInstancePublicationOptions
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
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)
clone_to_uninit
)