[−][src]Struct webdav_handler::body::StreamBody
Methods
impl<ReqBody, ReqData, ReqError> StreamBody<ReqBody> where
ReqData: Buf + Send,
ReqError: StdError + Send + Sync + 'static,
ReqBody: Stream<Item = Result<ReqData, ReqError>>, [src]
ReqData: Buf + Send,
ReqError: StdError + Send + Sync + 'static,
ReqBody: Stream<Item = Result<ReqData, ReqError>>,
pub fn new(body: ReqBody) -> StreamBody<ReqBody>[src]
Trait Implementations
impl<ReqBody, ReqData, ReqError> Body for StreamBody<ReqBody> where
ReqData: Buf + Send,
ReqError: StdError + Send + Sync + 'static,
ReqBody: Stream<Item = Result<ReqData, ReqError>>, [src]
ReqData: Buf + Send,
ReqError: StdError + Send + Sync + 'static,
ReqBody: Stream<Item = Result<ReqData, ReqError>>,
type Data = ReqData
Values yielded by the Body.
type Error = ReqError
The error type this Body might generate.
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Data, Self::Error>>>[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Data, Self::Error>>>
fn poll_trailers(
self: Pin<&mut Self>,
_cx: &mut Context
) -> Poll<Result<Option<HeaderMap>, Self::Error>>[src]
self: Pin<&mut Self>,
_cx: &mut Context
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
fn is_end_stream(&self) -> bool[src]
fn size_hint(&self) -> SizeHint[src]
fn data(&mut self) -> Data<Self> where
Self: Unpin, [src]
Self: Unpin,
fn trailers(&mut self) -> Trailers<Self> where
Self: Unpin, [src]
Self: Unpin,
impl<'pin, B> Unpin for StreamBody<B> where
__StreamBody<'pin, B>: Unpin, [src]
__StreamBody<'pin, B>: Unpin,
Auto Trait Implementations
impl<B> RefUnwindSafe for StreamBody<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for StreamBody<B> where
B: Send,
B: Send,
impl<B> Sync for StreamBody<B> where
B: Sync,
B: Sync,
impl<B> UnwindSafe for StreamBody<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,