pub struct With<Wr, Part, Fut, F> { /* private fields */ }Expand description
MultipartWrite for with.
Implementations§
Source§impl<Wr, Part, Fut, F> With<Wr, Part, Fut, F>
impl<Wr, Part, Fut, F> With<Wr, Part, Fut, F>
Sourcepub fn into_inner(self) -> Wr
pub fn into_inner(self) -> Wr
Consumes With, returning the underlying writer.
Sourcepub fn get_mut(&mut self) -> &mut Wr
pub fn get_mut(&mut self) -> &mut Wr
Acquires a mutable reference to the underlying writer.
It is inadvisable to directly write to the underlying writer.
Sourcepub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Wr>
pub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Wr>
Acquires a pinned mutable reference to the underlying writer.
It is inadvisable to directly write to the underlying writer.
Trait Implementations§
Source§impl<U, E, Wr, Part, Fut, F> FusedMultipartWrite<U> for With<Wr, Part, Fut, F>
impl<U, E, Wr, Part, Fut, F> FusedMultipartWrite<U> for With<Wr, Part, Fut, F>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the writer should no longer be polled.Source§impl<U, E, Wr, Part, Fut, F> MultipartWrite<U> for With<Wr, Part, Fut, F>
impl<U, E, Wr, Part, Fut, F> MultipartWrite<U> for With<Wr, Part, Fut, F>
Source§type Output = <Wr as MultipartWrite<Part>>::Output
type Output = <Wr as MultipartWrite<Part>>::Output
The type of value returned when all parts are written.
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
MultipartWrite to receive a new part. Read moreSource§fn start_send(self: Pin<&mut Self>, part: U) -> Result<Self::Ret, Self::Error>
fn start_send(self: Pin<&mut Self>, part: U) -> Result<Self::Ret, Self::Error>
Begin the process of writing a part to this writer, returning the
associated type confirming this was done successfully. Read more
impl<'__pin, Wr, Part, Fut, F> Unpin for With<Wr, Part, Fut, F>where
PinnedFieldsOf<__Origin<'__pin, Wr, Part, Fut, F>>: Unpin,
Auto Trait Implementations§
impl<Wr, Part, Fut, F> Freeze for With<Wr, Part, Fut, F>
impl<Wr, Part, Fut, F> RefUnwindSafe for With<Wr, Part, Fut, F>
impl<Wr, Part, Fut, F> Send for With<Wr, Part, Fut, F>
impl<Wr, Part, Fut, F> Sync for With<Wr, Part, Fut, F>
impl<Wr, Part, Fut, F> UnwindSafe for With<Wr, Part, Fut, F>
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<Wr, Part> MultipartWriteExt<Part> for Wrwhere
Wr: MultipartWrite<Part>,
impl<Wr, Part> MultipartWriteExt<Part> for Wrwhere
Wr: MultipartWrite<Part>,
Source§fn and_then<T, E, Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
fn and_then<T, E, Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
Compute from this writer’s output type a new output of a different type
using an asynchronous closure. Read more
Source§fn boxed<'a>(
self,
) -> BoxMultipartWrite<'a, Part, Self::Ret, Self::Output, Self::Error>
fn boxed<'a>( self, ) -> BoxMultipartWrite<'a, Part, Self::Ret, Self::Output, Self::Error>
Wrap this writer in a
Box, pinning it.Source§fn boxed_local<'a>(
self,
) -> LocalBoxMultipartWrite<'a, Part, Self::Ret, Self::Output, Self::Error>where
Self: Sized + 'a,
fn boxed_local<'a>(
self,
) -> LocalBoxMultipartWrite<'a, Part, Self::Ret, Self::Output, Self::Error>where
Self: Sized + 'a,
Wrap this writer in a
Box, pinning it. Read moreSource§fn buffered(self, capacity: impl Into<Option<usize>>) -> Buffered<Self, Part>where
Self: Sized,
fn buffered(self, capacity: impl Into<Option<usize>>) -> Buffered<Self, Part>where
Self: Sized,
Adds a fixed size buffer to the current writer. Read more
Source§fn complete(&mut self) -> Complete<'_, Self, Part> ⓘwhere
Self: Unpin,
fn complete(&mut self) -> Complete<'_, Self, Part> ⓘwhere
Self: Unpin,
A future that runs this writer to completion, returning the associated
output.
Source§fn fanout<U>(self, other: U) -> Fanout<Self, U, Part>
fn fanout<U>(self, other: U) -> Fanout<Self, U, Part>
Fanout the part to multiple writers. Read more
Source§fn feed(&mut self, part: Part) -> Feed<'_, Self, Part> ⓘwhere
Self: Unpin,
fn feed(&mut self, part: Part) -> Feed<'_, Self, Part> ⓘwhere
Self: Unpin,
A future that completes after the given part has been received by the
writer. Read more
Source§fn filter<F>(self, f: F) -> Filter<Self, F>
fn filter<F>(self, f: F) -> Filter<Self, F>
Apply a filter to this writer’s parts, returning a new writer with the
same output. Read more
Source§fn filter_map<U, F>(self, f: F) -> FilterMap<Self, F>
fn filter_map<U, F>(self, f: F) -> FilterMap<Self, F>
Attempt to map the input to a part for this writer, filtering out the
inputs where the mapping returns
None. Read moreSource§fn flush(&mut self) -> Flush<'_, Self, Part> ⓘwhere
Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self, Part> ⓘwhere
Self: Unpin,
A future that completes when the underlying writer has been flushed.
Source§fn fold_ret<T, F>(self, id: T, f: F) -> FoldRet<Self, T, F>
fn fold_ret<T, F>(self, id: T, f: F) -> FoldRet<Self, T, F>
Accumulate this writer’s returned values, returning a new multipart
writer that pairs the underlying writer’s output with the
result of the accumulating function.
Source§fn fuse<F>(self, f: F) -> Fuse<Self, F>
fn fuse<F>(self, f: F) -> Fuse<Self, F>
Returns a new writer that fuses according to the provided closure. Read more
Source§fn lift<U, T>(self, other: U) -> Lift<Self, U, Part>
fn lift<U, T>(self, other: U) -> Lift<Self, U, Part>
“Lift” the multipart writer
U in front of this one. Read moreSource§fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
Map this writer’s error type to a different value, returning a new
multipart writer with the given error type.
Source§fn map_ok<U, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<U, F>(self, f: F) -> MapOk<Self, F>
Map this writer’s output type to a different type, returning a new
multipart writer with the given output type.
Source§fn map_ret<U, F>(self, f: F) -> MapRet<Self, F>
fn map_ret<U, F>(self, f: F) -> MapRet<Self, F>
Map this writer’s return type to a different value, returning a new
multipart writer with the given return type.
Source§fn poll_ready_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
fn poll_ready_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
A convenience method for calling
MultipartWrite::poll_ready on
Unpin writer types.Source§fn poll_flush_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
fn poll_flush_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
A convenience method for calling
MultipartWrite::poll_flush on
Unpin writer types.Source§fn poll_complete_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Output, Self::Error>>where
Self: Unpin,
fn poll_complete_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Output, Self::Error>>where
Self: Unpin,
A convenience method for calling
MultipartWrite::poll_complete on
Unpin writer types.Source§fn send_part(&mut self, part: Part) -> SendPart<'_, Self, Part> ⓘwhere
Self: Unpin,
fn send_part(&mut self, part: Part) -> SendPart<'_, Self, Part> ⓘwhere
Self: Unpin,
A future that completes when a part has been fully processed into the
writer, including flushing.