pub struct MapRet<Wr, F> { /* private fields */ }Expand description
MultipartWrite for map_ret.
Implementations§
Source§impl<Wr, F> MapRet<Wr, F>
impl<Wr, F> MapRet<Wr, F>
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, Wr, F, Part> FusedMultipartWrite<Part> for MapRet<Wr, F>
impl<U, Wr, F, Part> FusedMultipartWrite<Part> for MapRet<Wr, 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, Wr, F, Part> MultipartWrite<Part> for MapRet<Wr, F>
impl<U, Wr, F, Part> MultipartWrite<Part> for MapRet<Wr, 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§type Error = <Wr as MultipartWrite<Part>>::Error
type Error = <Wr as MultipartWrite<Part>>::Error
The type of value returned when an operation fails.
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: Part,
) -> Result<Self::Ret, Self::Error>
fn start_send( self: Pin<&mut Self>, part: Part, ) -> 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, F> Unpin for MapRet<Wr, F>where
PinnedFieldsOf<__MapRet<'pin, Wr, F>>: Unpin,
Auto Trait Implementations§
impl<Wr, F> Freeze for MapRet<Wr, F>
impl<Wr, F> RefUnwindSafe for MapRet<Wr, F>where
Wr: RefUnwindSafe,
F: RefUnwindSafe,
impl<Wr, F> Send for MapRet<Wr, F>
impl<Wr, F> Sync for MapRet<Wr, F>
impl<Wr, F> UnwindSafe for MapRet<Wr, F>where
Wr: UnwindSafe,
F: 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<Wr, Part> MultipartWriteExt<Part> for Wrwhere
Wr: MultipartWrite<Part>,
impl<Wr, Part> MultipartWriteExt<Part> for Wrwhere
Wr: MultipartWrite<Part>,
Source§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 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, F, T>
fn fold_ret<T, F>(self, id: T, f: F) -> FoldRet<Self, F, T>
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 map<U, F>(self, f: F) -> Map<Self, F>
fn map<U, F>(self, f: F) -> Map<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_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_part<U, F>(self, f: F) -> MapPart<Self, F>
fn map_part<U, F>(self, f: F) -> MapPart<Self, F>
Pre-compose the underlying writer with a function that transforms a
the input part 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 on_complete<S, F, Fut>(self, s: S, f: F) -> OnComplete<Self, S, F, Fut>
fn on_complete<S, F, Fut>(self, s: S, f: F) -> OnComplete<Self, S, F, Fut>
Returns a writer wrapping this one and having the property that it
creates a new
self after each poll_complete. Read moreSource§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
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
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
poll_complete on Unpin writer types.Source§fn send(&mut self, part: Part) -> Send<'_, Self, Part> ⓘwhere
Self: Unpin,
fn send(&mut self, part: Part) -> Send<'_, Self, Part> ⓘwhere
Self: Unpin,
A future that completes when a part has been fully processed into the
writer, including flushing.