pub struct AccessorSynchronousProxy { /* private fields */ }
Implementations§
Source§impl AccessorSynchronousProxy
impl AccessorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<AccessorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<AccessorEvent, 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 get_details(
&self,
handle: u64,
include_attachment: bool,
___deadline: MonotonicInstant,
) -> Result<MessageControllerGetDetailsResult, Error>
pub fn get_details( &self, handle: u64, include_attachment: bool, ___deadline: MonotonicInstant, ) -> Result<MessageControllerGetDetailsResult, Error>
Retrieve all available message details.
- request
handle
Unique identifier for a Messsage. - request
include_attachment
Whether or not attachment should be included as part of Message content if it’s available.
- response NOT_FOUND error is returned if the message with the given handle does not exist.
pub fn list_all_mas_instances( &self, ___deadline: MonotonicInstant, ) -> Result<AccessorListAllMasInstancesResult, Error>
Sourcepub fn set_notification_registration(
&self,
payload: AccessorSetNotificationRegistrationRequest,
___deadline: MonotonicInstant,
) -> Result<AccessorSetNotificationRegistrationResult, Error>
pub fn set_notification_registration( &self, payload: AccessorSetNotificationRegistrationRequest, ___deadline: MonotonicInstant, ) -> Result<AccessorSetNotificationRegistrationResult, Error>
Registers for notifications from the specified MAS instances. Note that notification registration may only be open one at a time. If the NotificationRegistration protocol is active when a new request is made, the request will fail with an Unavailable error until the existing channel is closed. Hangs until registration process is completed.
- request
mas_instance_ids
If empty, registration for notifications is done for all known MAS instances. - request
server
Client end of the repository notifier protocol that needs to be passed to the Accessor server. Caller should hold onto the server end to receive incoming notifications. Should not be empty.
Trait Implementations§
Source§impl Debug for AccessorSynchronousProxy
impl Debug for AccessorSynchronousProxy
Source§impl SynchronousProxy for AccessorSynchronousProxy
impl SynchronousProxy for AccessorSynchronousProxy
Source§type Proxy = AccessorProxy
type Proxy = AccessorProxy
The async proxy for the same protocol.
Source§type Protocol = AccessorMarker
type Protocol = AccessorMarker
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 AccessorSynchronousProxy
impl RefUnwindSafe for AccessorSynchronousProxy
impl Send for AccessorSynchronousProxy
impl Sync for AccessorSynchronousProxy
impl Unpin for AccessorSynchronousProxy
impl UnwindSafe for AccessorSynchronousProxy
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