[−][src]Struct tsukuyomi_server::test::Server
A test server which emulates an HTTP service without using the low-level I/O.
Methods
impl<S, Bd> Server<S, Runtime> where
S: MakeService<(), Request<Body>, Response = Response<Bd>>,
Bd: Payload,
S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
S::Future: Send + 'static,
S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>> + Send + 'static,
S::Service: Send + 'static, [src]
impl<S, Bd> Server<S, Runtime> where
S: MakeService<(), Request<Body>, Response = Response<Bd>>,
Bd: Payload,
S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
S::Future: Send + 'static,
S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>> + Send + 'static,
S::Service: Send + 'static, pub fn new_session(&mut self) -> Result<Session<S::Service, Runtime>>[src]
pub fn new_session(&mut self) -> Result<Session<S::Service, Runtime>>Create a Session associated with this server.
pub fn perform<T>(&mut self, input: T) -> Result<Response<Output>> where
T: Input,
<S::Service as Service<Request<Body>>>::Future: Send + 'static, [src]
pub fn perform<T>(&mut self, input: T) -> Result<Response<Output>> where
T: Input,
<S::Service as Service<Request<Body>>>::Future: Send + 'static, impl<S, Bd> Server<S, Runtime> where
S: MakeService<(), Request<Body>, Response = Response<Bd>>,
Bd: Payload,
S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>>, [src]
impl<S, Bd> Server<S, Runtime> where
S: MakeService<(), Request<Body>, Response = Response<Bd>>,
Bd: Payload,
S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>>, pub fn new_session(&mut self) -> Result<Session<S::Service, Runtime>>[src]
pub fn new_session(&mut self) -> Result<Session<S::Service, Runtime>>Create a Session associated with this server.
pub fn perform<T>(&mut self, input: T) -> Result<Response<Output>> where
T: Input, [src]
pub fn perform<T>(&mut self, input: T) -> Result<Response<Output>> where
T: Input, impl<S, Rt> Server<S, Rt> where
S: MakeService<(), Request<Body>>, [src]
impl<S, Rt> Server<S, Rt> where
S: MakeService<(), Request<Body>>, pub fn new(make_service: S, runtime: Rt) -> Self[src]
pub fn new(make_service: S, runtime: Rt) -> SelfCreates an instance of TestServer from the specified components.
Trait Implementations
Auto Trait Implementations
impl<S, Rt> Send for Server<S, Rt> where
Rt: Send,
S: Send,
impl<S, Rt> Send for Server<S, Rt> where
Rt: Send,
S: Send, impl<S, Rt> Sync for Server<S, Rt> where
Rt: Sync,
S: Sync,
impl<S, Rt> Sync for Server<S, Rt> where
Rt: Sync,
S: Sync, Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> Erased for T
impl<T> Erased for T