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,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.