pub struct PagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PagerSynchronousProxy
impl PagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PagerEvent, 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 register_file(
&self,
payload: &PagerRegisterFileRequest,
___deadline: MonotonicInstant,
) -> Result<PagerRegisterFileResult, Error>
pub fn register_file( &self, payload: &PagerRegisterFileRequest, ___deadline: MonotonicInstant, ) -> Result<PagerRegisterFileResult, Error>
Registers a file with the pager.
Trait Implementations§
Source§impl Debug for PagerSynchronousProxy
impl Debug for PagerSynchronousProxy
Source§impl From<Channel> for PagerSynchronousProxy
impl From<Channel> for PagerSynchronousProxy
Source§impl From<PagerSynchronousProxy> for Handle
impl From<PagerSynchronousProxy> for Handle
Source§fn from(value: PagerSynchronousProxy) -> Self
fn from(value: PagerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl SynchronousProxy for PagerSynchronousProxy
impl SynchronousProxy for PagerSynchronousProxy
Source§type Proxy = PagerProxy
type Proxy = PagerProxy
The async proxy for the same protocol.
Source§type Protocol = PagerMarker
type Protocol = PagerMarker
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 PagerSynchronousProxy
impl RefUnwindSafe for PagerSynchronousProxy
impl Send for PagerSynchronousProxy
impl Sync for PagerSynchronousProxy
impl Unpin for PagerSynchronousProxy
impl UnwindSafe for PagerSynchronousProxy
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