pub struct FileReader { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for FileReader
impl Clone for FileReader
Source§fn clone(&self) -> FileReader
fn clone(&self) -> FileReader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileReader
impl Debug for FileReader
Source§impl Default for FileReader
impl Default for FileReader
Source§impl<P: AsRef<Path> + Send + Sync> Service<P> for FileReader
impl<P: AsRef<Path> + Send + Sync> Service<P> for FileReader
type Out = Result<WithSource<Bytes>, Error>
fn handle( &mut self, path: 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,
impl Copy for FileReader
Auto Trait Implementations§
impl Freeze for FileReader
impl RefUnwindSafe for FileReader
impl Send for FileReader
impl Sync for FileReader
impl Unpin for FileReader
impl UnsafeUnpin for FileReader
impl UnwindSafe for FileReader
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