[−][src]Struct tari_service_framework::reply_channel::SenderService
Requester is sends requests on a given Tx
sender and returns a
AwaitResponseFuture which will resolve to the generic TRes
.
This should be used to make requests which require a response.
This implements tower_service::Service
, therefore the poll_ready
and call
methods should be used to make a request.
Methods
impl<TReq, TRes> SenderService<TReq, TRes>
[src]
Trait Implementations
impl<TReq, TRes> Clone for SenderService<TReq, TRes>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<TReq, TRes> Service<TReq> for SenderService<TReq, TRes>
[src]
type Error = TransportChannelError
Errors produced by the service.
type Future = TransportResponseFuture<TRes>
The future response value.
type Response = TRes
Responses given by the service.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, request: TReq) -> Self::Future
[src]
Auto Trait Implementations
impl<TReq, TRes> !RefUnwindSafe for SenderService<TReq, TRes>
impl<TReq, TRes> Send for SenderService<TReq, TRes> where
TReq: Send,
TRes: Send,
TReq: Send,
TRes: Send,
impl<TReq, TRes> Sync for SenderService<TReq, TRes> where
TReq: Send,
TRes: Send,
TReq: Send,
TRes: Send,
impl<TReq, TRes> Unpin for SenderService<TReq, TRes>
impl<TReq, TRes> !UnwindSafe for SenderService<TReq, TRes>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,