pub struct ServiceInstancePublicationResponder_SynchronousProxy { /* private fields */ }
Implementations§
Source§impl ServiceInstancePublicationResponder_SynchronousProxy
impl ServiceInstancePublicationResponder_SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ServiceInstancePublicationResponder_Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ServiceInstancePublicationResponder_Event, 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 on_publication(
&self,
publication_cause: ServiceInstancePublicationCause,
subtype: Option<&str>,
source_addresses: &[IpAddress],
___deadline: MonotonicInstant,
) -> Result<ServiceInstancePublicationResponderOnPublicationResult, Error>
pub fn on_publication( &self, publication_cause: ServiceInstancePublicationCause, subtype: Option<&str>, source_addresses: &[IpAddress], ___deadline: MonotonicInstant, ) -> Result<ServiceInstancePublicationResponderOnPublicationResult, Error>
Provides instance information for initial announcements and query
responses relating to the service instance specified in
ServiceInstancePublisher.PublishServiceInstance
.
- request
publication_cause
the action that motivates this publication. - request
subtype
the subtype if the publication relates to a subtype of the service, otherwise null. - request
source_addresses
addresses from which queries arrived, if applicable.
- response
publication
the desired publication. Strings inpublication.text
are sent in the TXT resource.
- error indicates the publication should not be sent.
If no publication should be sent, this method should return a DO_NOT_RESPOND
error.
Trait Implementations§
Source§impl SynchronousProxy for ServiceInstancePublicationResponder_SynchronousProxy
impl SynchronousProxy for ServiceInstancePublicationResponder_SynchronousProxy
Source§type Proxy = ServiceInstancePublicationResponder_Proxy
type Proxy = ServiceInstancePublicationResponder_Proxy
The async proxy for the same protocol.
Source§type Protocol = ServiceInstancePublicationResponder_Marker
type Protocol = ServiceInstancePublicationResponder_Marker
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 ServiceInstancePublicationResponder_SynchronousProxy
impl RefUnwindSafe for ServiceInstancePublicationResponder_SynchronousProxy
impl Send for ServiceInstancePublicationResponder_SynchronousProxy
impl Sync for ServiceInstancePublicationResponder_SynchronousProxy
impl Unpin for ServiceInstancePublicationResponder_SynchronousProxy
impl UnwindSafe for ServiceInstancePublicationResponder_SynchronousProxy
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