pub trait OperationShapeExt: OperationShape {
// Provided methods
fn from_handler<H, Exts>(handler: H) -> IntoService<Self, H>
where H: Handler<Self, Exts>,
Self: Sized { ... }
fn from_service<S, Exts>(svc: S) -> Normalize<Self, S>
where S: OperationService<Self, Exts>,
Self: Sized { ... }
}
Expand description
An extension trait over OperationShape
.
Provided Methods§
sourcefn from_handler<H, Exts>(handler: H) -> IntoService<Self, H>
fn from_handler<H, Exts>(handler: H) -> IntoService<Self, H>
Creates a new Service
, IntoService
, for well-formed Handler
s.
sourcefn from_service<S, Exts>(svc: S) -> Normalize<Self, S>where
S: OperationService<Self, Exts>,
Self: Sized,
fn from_service<S, Exts>(svc: S) -> Normalize<Self, S>where
S: OperationService<Self, Exts>,
Self: Sized,
Object Safety§
This trait is not object safe.