pub struct MemoryRequestReply { /* private fields */ }Expand description
In-process RequestReply impl.
Implementations§
Source§impl MemoryRequestReply
impl MemoryRequestReply
Sourcepub fn new(pubsub: Arc<MemoryPubsub>) -> Self
pub fn new(pubsub: Arc<MemoryPubsub>) -> Self
Build atop the supplied pubsub.
Trait Implementations§
Source§impl RequestReply for MemoryRequestReply
impl RequestReply for MemoryRequestReply
Source§fn request<'life0, 'life1, 'async_trait>(
&'life0 self,
subject: &'life1 str,
payload: Bytes,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Bytes, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request<'life0, 'life1, 'async_trait>(
&'life0 self,
subject: &'life1 str,
payload: Bytes,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Bytes, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a request and await one reply, bounded by
timeout.Auto Trait Implementations§
impl !Freeze for MemoryRequestReply
impl !RefUnwindSafe for MemoryRequestReply
impl !UnwindSafe for MemoryRequestReply
impl Send for MemoryRequestReply
impl Sync for MemoryRequestReply
impl Unpin for MemoryRequestReply
impl UnsafeUnpin for MemoryRequestReply
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