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§

source

fn from_handler<H, Exts>(handler: H) -> IntoService<Self, H>
where H: Handler<Self, Exts>, Self: Sized,

Creates a new Service, IntoService, for well-formed Handlers.

source

fn from_service<S, Exts>(svc: S) -> Normalize<Self, S>
where S: OperationService<Self, Exts>, Self: Sized,

Creates a new normalized Service, Normalize, for well-formed Services.

Object Safety§

This trait is not object safe.

Implementors§