pub struct PublicationResponder_SynchronousProxy { /* private fields */ }
Implementations§
Source§impl PublicationResponder_SynchronousProxy
impl PublicationResponder_SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PublicationResponder_Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PublicationResponder_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: PublicationCause,
subtype: Option<&str>,
source_addresses: &[IpAddress],
___deadline: MonotonicInstant,
) -> Result<Option<Box<Publication>>, Error>
pub fn on_publication( &self, publication_cause: PublicationCause, subtype: Option<&str>, source_addresses: &[IpAddress], ___deadline: MonotonicInstant, ) -> Result<Option<Box<Publication>>, Error>
Provides instance information for initial announcements and query
responses relating to the service instance specified in
ServiceInstancePublisher.PublishServiceInstance
. If the publication relates to a
subtype of the service, subtype
contains the subtype, otherwise
it is null. If publication
is null, no announcement or response is
transmitted. Strings in text
are transmitted in the TXT record.
Trait Implementations§
Source§impl SynchronousProxy for PublicationResponder_SynchronousProxy
impl SynchronousProxy for PublicationResponder_SynchronousProxy
Source§type Proxy = PublicationResponder_Proxy
type Proxy = PublicationResponder_Proxy
The async proxy for the same protocol.
Source§type Protocol = PublicationResponder_Marker
type Protocol = PublicationResponder_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 PublicationResponder_SynchronousProxy
impl RefUnwindSafe for PublicationResponder_SynchronousProxy
impl Send for PublicationResponder_SynchronousProxy
impl Sync for PublicationResponder_SynchronousProxy
impl Unpin for PublicationResponder_SynchronousProxy
impl UnwindSafe for PublicationResponder_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