Struct sod::CloneService
source · pub struct CloneService<T: Clone, B: Borrow<T>> { /* private fields */ }Expand description
Clone a Borrow<T> input, producing the cloned T value as output
Implementations§
Trait Implementations§
source§impl<T: Clone, B: Borrow<T>> Service for CloneService<T, B>
impl<T: Clone, B: Borrow<T>> Service for CloneService<T, B>
type Input = B
type Output = T
type Error = Infallible
source§fn process(&self, input: B) -> Result<Self::Output, Self::Error>
fn process(&self, input: B) -> Result<Self::Output, Self::Error>
Process an input, producing a
Result<Self::Output, Self::Error>source§fn into_mut(self) -> ServiceMut<Self>where
Self: Sized,
fn into_mut(self) -> ServiceMut<Self>where
Self: Sized,
source§fn into_async(self) -> ServiceAsync<Self>
fn into_async(self) -> ServiceAsync<Self>
source§fn into_dyn<'a>(self) -> DynService<'a, Self::Input, Self::Output, Self::Error>where
Self: Sized + 'static,
fn into_dyn<'a>(self) -> DynService<'a, Self::Input, Self::Output, Self::Error>where
Self: Sized + 'static,
Convert this
Service into a DynServiceAuto Trait Implementations§
impl<T, B> RefUnwindSafe for CloneService<T, B>
impl<T, B> Send for CloneService<T, B>
impl<T, B> Sync for CloneService<T, B>
impl<T, B> Unpin for CloneService<T, B>
impl<T, B> UnwindSafe for CloneService<T, B>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more