pub struct IntoService<E> { /* private fields */ }Expand description
Hyper service adapter for skyzen endpoints.
Implementations§
Source§impl<E: Endpoint + Clone> IntoService<E>
impl<E: Endpoint + Clone> IntoService<E>
Sourcepub const fn new(endpoint: E, executor: Arc<AnyExecutor>) -> Self
pub const fn new(endpoint: E, executor: Arc<AnyExecutor>) -> Self
Create a new service with the given endpoint and executor.
Trait Implementations§
Source§impl<E: Debug> Debug for IntoService<E>
impl<E: Debug> Debug for IntoService<E>
Source§impl<E: Endpoint + Send + Sync + Clone + 'static> Service<Request<Incoming>> for IntoService<E>
impl<E: Endpoint + Send + Sync + Clone + 'static> Service<Request<Incoming>> for IntoService<E>
Source§type Response = Response<StreamBody<MapOk<Body, fn(Bytes) -> Frame<Bytes>>>>
type Response = Response<StreamBody<MapOk<Body, fn(Bytes) -> Frame<Bytes>>>>
Responses given by the service.
Auto Trait Implementations§
impl<E> Freeze for IntoService<E>where
E: Freeze,
impl<E> !RefUnwindSafe for IntoService<E>
impl<E> Send for IntoService<E>where
E: Send,
impl<E> Sync for IntoService<E>where
E: Sync,
impl<E> Unpin for IntoService<E>where
E: Unpin,
impl<E> !UnwindSafe for IntoService<E>
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