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.