pub struct Channel<X, Y> { /* private fields */ }
Available on crate feature
runtime
only.Trait Implementations
sourceimpl<X: 'static + Send, Y: 'static + Send> Service<X> for Channel<X, Y>
impl<X: 'static + Send, Y: 'static + Send> Service<X> for Channel<X, Y>
type Response = Y
type Response = Y
Responses given by the service.
type Future = Pin<Box<dyn Future<Output = Result<Y, <Channel<X, Y> as Service<X>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<Y, <Channel<X, Y> as Service<X>>::Error>> + Send + 'static, Global>>
The future response value.
Auto Trait Implementations
impl<X, Y> !RefUnwindSafe for Channel<X, Y>
impl<X, Y> Send for Channel<X, Y> where
X: Send,
Y: Send,
impl<X, Y> Sync for Channel<X, Y> where
X: Send,
Y: Send,
impl<X, Y> Unpin for Channel<X, Y>
impl<X, Y> !UnwindSafe for Channel<X, Y>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more