pub struct ProxyHostPublisherSynchronousProxy { /* private fields */ }Implementations§
Source§impl ProxyHostPublisherSynchronousProxy
impl ProxyHostPublisherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ProxyHostPublisherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ProxyHostPublisherEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn publish_proxy_host(
&self,
host: &str,
addresses: &[IpAddress],
options: &ProxyHostPublicationOptions,
service_instance_publisher: ServerEnd<ServiceInstancePublisherMarker>,
___deadline: MonotonicInstant,
) -> Result<ProxyHostPublisherPublishProxyHostResult, Error>
pub fn publish_proxy_host( &self, host: &str, addresses: &[IpAddress], options: &ProxyHostPublicationOptions, service_instance_publisher: ServerEnd<ServiceInstancePublisherMarker>, ___deadline: MonotonicInstant, ) -> Result<ProxyHostPublisherPublishProxyHostResult, Error>
Publishes a host name on behalf of a remote host and provides a ServiceInstancePublisher
for publishing service instances on behalf of that host.
- request
hosthost name to publish. - request
addressesaddresses to publish for the host name. - request
optionsoptions to be applied to the publication. - request
service_instance_publisherserver end of theServiceInstancePublisherfor the proxied host.
This method causes the service to publish the host name at the specified addresses. The
actual host must not be present on any relevant links or there will be a conflict. If
the perform_probe option is true or not supplied (true by default), a probe will occur
to verify that the host name isn’t otherwise published.
The proxy host created by this method persists until the ServiceInstancePublisher
channel is closed.
Trait Implementations§
Source§impl From<Channel> for ProxyHostPublisherSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for ProxyHostPublisherSynchronousProxy
Available on Fuchsia only.
Source§impl From<ProxyHostPublisherSynchronousProxy> for Handle
Available on Fuchsia only.
impl From<ProxyHostPublisherSynchronousProxy> for Handle
Available on Fuchsia only.
Source§fn from(value: ProxyHostPublisherSynchronousProxy) -> Self
fn from(value: ProxyHostPublisherSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for ProxyHostPublisherSynchronousProxy
Available on Fuchsia only.
impl FromClient for ProxyHostPublisherSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = ProxyHostPublisherMarker
type Protocol = ProxyHostPublisherMarker
The protocol.
Source§fn from_client(value: ClientEnd<ProxyHostPublisherMarker>) -> Self
fn from_client(value: ClientEnd<ProxyHostPublisherMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for ProxyHostPublisherSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for ProxyHostPublisherSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = ProxyHostPublisherProxy
type Proxy = ProxyHostPublisherProxy
The async proxy for the same protocol.
Source§type Protocol = ProxyHostPublisherMarker
type Protocol = ProxyHostPublisherMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for ProxyHostPublisherSynchronousProxy
impl RefUnwindSafe for ProxyHostPublisherSynchronousProxy
impl Send for ProxyHostPublisherSynchronousProxy
impl Sync for ProxyHostPublisherSynchronousProxy
impl Unpin for ProxyHostPublisherSynchronousProxy
impl UnwindSafe for ProxyHostPublisherSynchronousProxy
Blanket Implementations§
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