pub struct DirReader { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<P: AsRef<Path> + Send> Service<P> for DirReader
impl<P: AsRef<Path> + Send> Service<P> for DirReader
type Out = Result<WithSource<PathBuf>, Error>
fn handle( &mut self, dir: P, cx: &Context, ) -> impl Stream<Item = Self::Out> + Send
fn handle_stream( &mut self, input: impl Stream<Item = In> + Send, cx: &Context, ) -> impl Stream<Item = Self::Out> + Send
fn finalize(&mut self, _cx: &Context) -> impl Future<Output = ()>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for DirReader
impl RefUnwindSafe for DirReader
impl Send for DirReader
impl Sync for DirReader
impl Unpin for DirReader
impl UnsafeUnpin for DirReader
impl UnwindSafe for DirReader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ServiceExt<I> for T
impl<I, T> ServiceExt<I> for T
fn flow<O1, O2, E1, E2, U>(self, service: U) -> (Self, U)
fn except<F>(self, on_err: F) -> Except<Self, F>where
Self: Sized,
Source§fn flow_inspect<O, E, F>(self, f: F) -> Left<Self, Inspect<O, F>>
fn flow_inspect<O, E, F>(self, f: F) -> Left<Self, Inspect<O, F>>
Adds an inspection step that invokes the supplied callback on every
successful output of the wrapped service. Read more
Source§fn concurrent_each(self, limit: usize) -> ConcurrentEach<I, Self>
fn concurrent_each(self, limit: usize) -> ConcurrentEach<I, Self>
Creates a concurrent wrapper around the current service that limits the number of
parallel executions. Read more
Source§fn spawn_each(self) -> SpawnEach<I, Self>
fn spawn_each(self) -> SpawnEach<I, Self>
Source§fn flow_scope<O, M, E1, S, F>(self, f: F, s: S) -> (Self, Scope<O, M, E1, S, F>)
fn flow_scope<O, M, E1, S, F>(self, f: F, s: S) -> (Self, Scope<O, M, E1, S, F>)
Creates a scoped service wrapper that transforms incoming messages before passing to the wrapped service. Read more