pub struct PrefixLister<L> { /* private fields */ }
Expand description
PrefixLister is used to filter entries by prefix.
For example, if we have a lister that returns entries:
.
├── file_a
└── file_b
We can use PrefixLister
to filter entries with prefix file_
.
Implementations§
Source§impl<L> PrefixLister<L>
impl<L> PrefixLister<L>
Sourcepub fn new(lister: L, prefix: &str) -> PrefixLister<L>
pub fn new(lister: L, prefix: &str) -> PrefixLister<L>
Create a new flat lister
Trait Implementations§
Source§impl<L> List for PrefixLister<L>where
L: List,
impl<L> List for PrefixLister<L>where
L: List,
impl<L> Sync for PrefixLister<L>
§Safety
We will only take &mut Self
reference for FsLister.
Auto Trait Implementations§
impl<L> Freeze for PrefixLister<L>where
L: Freeze,
impl<L> RefUnwindSafe for PrefixLister<L>where
L: RefUnwindSafe,
impl<L> Send for PrefixLister<L>where
L: Send,
impl<L> Unpin for PrefixLister<L>where
L: Unpin,
impl<L> UnwindSafe for PrefixLister<L>where
L: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more