Trait sod::IntoMutService

source ·
pub trait IntoMutService<I, S: MutService<I>> {
    // Required method
    fn into_mut(self) -> S;
}
Expand description

Used as a generic input to accept any Service or MutService as a MutService.

This is used by ServiceChain::start_mut(MutService) to accept either a Service or MutService.

Required Methods§

source

fn into_mut(self) -> S

Implementors§

source§

impl<I, S: MutService<I>> IntoMutService<I, S> for S

source§

impl<I, S: Service<I>> IntoMutService<I, ServiceMut<I, S>> for S