Struct tower_http::services::fs::ServeDirResponseBody [−][src]
pub struct ServeDirResponseBody(_);
This is supported on crate feature
fs
only.Expand description
Response body for ServeDir
.
Trait Implementations
impl Body for ResponseBody
[src]
impl Body for ResponseBody
[src]fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
[src]
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
[src]Attempt to pull out the next data buffer of this stream.
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
[src]
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
[src]Poll for an optional single HeaderMap
of trailers. Read more
fn is_end_stream(&self) -> bool
[src]
fn is_end_stream(&self) -> bool
[src]Returns true
when the end of stream has been reached. Read more
fn size_hint(&self) -> SizeHint
[src]
fn size_hint(&self) -> SizeHint
[src]Returns the bounds on the remaining length of the stream. Read more
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin,
[src]
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin,
[src]Returns future that resolves to next data chunk, if any.
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin,
[src]
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin,
[src]Returns future that resolves to trailers, if any.
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf,
[src]
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf,
[src]Maps this body’s data value to a different value.
impl<'pin> Unpin for ResponseBody where
__ResponseBody<'pin>: Unpin,
[src]
__ResponseBody<'pin>: Unpin,
Auto Trait Implementations
impl !RefUnwindSafe for ResponseBody
impl Send for ResponseBody
impl Sync for ResponseBody
impl !UnwindSafe for ResponseBody
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> PolicyExt for T where
T: ?Sized,
[src]
impl<T> PolicyExt for T where
T: ?Sized,
[src]