[−][src]Struct interledger_spsp::SpspResponder
A Hyper::Service that responds to incoming SPSP Query requests with newly generated details for a STREAM connection.
Methods
impl SpspResponder
[src]
pub fn new(ilp_address: Address, server_secret: Bytes) -> Self
[src]
pub fn generate_http_response(&self) -> Response<Body>
[src]
Trait Implementations
impl Clone for SpspResponder
[src]
fn clone(&self) -> SpspResponder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl IntoFuture for SpspResponder
[src]
type Item = Self
The item that the future may resolve with.
type Error = Never
The error that the future may resolve with.
type Future = FutureResult<Self::Item, Self::Error>
The future that this type can be converted into.
fn into_future(self) -> Self::Future
[src]
impl Service for SpspResponder
[src]
type ReqBody = Body
The Payload
body of the http::Request
.
type ResBody = Body
The Payload
body of the http::Response
.
type Error = Error
The error type that can occur within this Service
. Read more
type Future = FutureResult<Response<Body>, Error>
The Future
returned by this Service
.
fn call(&mut self, _request: Request<Self::ReqBody>) -> Self::Future
[src]
fn poll_ready(&mut self) -> Result<Async<()>, Self::Error>
[src]
Auto Trait Implementations
impl Send for SpspResponder
impl Sync for SpspResponder
impl Unpin for SpspResponder
impl UnwindSafe for SpspResponder
impl RefUnwindSafe for SpspResponder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
type Future = F
The future that this type can be converted into.
type Item = <F as Future>::Item
The item that the future may resolve with.
type Error = <F as Future>::Error
The error that the future may resolve with.
fn into_future(self) -> F
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,