pub struct WaitReply<R, E>(/* private fields */);Expand description
Context used to wait for a server to reply to a request.
Implementations§
Source§impl<R, E> WaitReply<R, E>
impl<R, E> WaitReply<R, E>
Sourcepub fn wait(self) -> Result<R, Error<E>>
pub fn wait(self) -> Result<R, Error<E>>
Block and wait for a reply.
For use in non-async threads.
§Errors
Error::ServerDisappeared means the linked server object has been
released.
If the ReplyContext is dropped by the server
handler it replies to the message, Error::NoReply will be returned.
If an application specific error occurs it will be returned in
Error::App.
Sourcepub async fn wait_async(self) -> Result<R, Error<E>>
pub async fn wait_async(self) -> Result<R, Error<E>>
Block and wait for a reply.
Same as WaitReply::wait(), but for use in async contexts.
Auto Trait Implementations§
impl<R, E> Freeze for WaitReply<R, E>
impl<R, E> !RefUnwindSafe for WaitReply<R, E>
impl<R, E> Send for WaitReply<R, E>
impl<R, E> Sync for WaitReply<R, E>
impl<R, E> Unpin for WaitReply<R, E>
impl<R, E> !UnwindSafe for WaitReply<R, E>
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