pub trait OperationShapeExt: OperationShape {
    // Provided methods
    fn from_handler<H, Exts>(handler: H) -> Operation<IntoService<Self, H>>
       where H: Handler<Self, Exts>,
             Self: Sized { ... }
    fn from_service<S, Exts, PollError>(
        svc: S
    ) -> Operation<Normalize<Self, S, PollError>>
       where S: OperationService<Self, Exts, PollError>,
             Self: Sized { ... }
}
Expand description

An extension trait over OperationShape.

Provided Methods§

source

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

Creates a new Operation for well-formed Handlers.

source

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

Creates a new Operation for well-formed Services.

Implementors§