pub struct Fuse<Wr, Part, F> { /* private fields */ }Expand description
MultipartWrite for fuse.
Implementations§
Source§impl<Wr, Part, F> Fuse<Wr, Part, F>
impl<Wr, Part, F> Fuse<Wr, Part, F>
Sourcepub fn into_inner(self) -> Wr
pub fn into_inner(self) -> Wr
Consumes Fuse, 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<Wr, Part, F> FusedMultipartWrite<Part> for Fuse<Wr, Part, F>
impl<Wr, Part, F> FusedMultipartWrite<Part> for Fuse<Wr, Part, F>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the writer should no longer be polled.Source§impl<Wr, Part, F> MultipartWrite<Part> for Fuse<Wr, Part, F>
impl<Wr, Part, F> MultipartWrite<Part> for Fuse<Wr, Part, F>
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§type Output = Option<<Wr as MultipartWrite<Part>>::Output>
type Output = Option<<Wr as MultipartWrite<Part>>::Output>
The type of value assembled from the parts when they have all been
written.
Source§type Recv = Option<<Wr as MultipartWrite<Part>>::Recv>
type Recv = Option<<Wr as MultipartWrite<Part>>::Recv>
The type of value returned when sending a part to be written began
successfully.
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::Recv, Self::Error>
fn start_send( self: Pin<&mut Self>, part: Part, ) -> Result<Self::Recv, Self::Error>
Begin the process of writing a part to this writer, returning the
associated type confirming it was received successfully. Read more
impl<'__pin, Wr, Part, F> Unpin for Fuse<Wr, Part, F>where
PinnedFieldsOf<__Origin<'__pin, Wr, Part, F>>: Unpin,
Auto Trait Implementations§
impl<Wr, Part, F> Freeze for Fuse<Wr, Part, F>
impl<Wr, Part, F> RefUnwindSafe for Fuse<Wr, Part, F>
impl<Wr, Part, F> Send for Fuse<Wr, Part, F>
impl<Wr, Part, F> Sync for Fuse<Wr, Part, F>
impl<Wr, Part, F> UnsafeUnpin for Fuse<Wr, Part, F>where
Wr: UnsafeUnpin,
F: UnsafeUnpin,
impl<Wr, Part, F> UnwindSafe for Fuse<Wr, Part, 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 boxed<'a>(
self,
) -> BoxMultipartWrite<'a, Part, Self::Recv, Self::Output, Self::Error>
fn boxed<'a>( self, ) -> BoxMultipartWrite<'a, Part, Self::Recv, Self::Output, Self::Error>
Wrap this writer in a
Box, pinning it.Source§fn box_fused<'a>(
self,
) -> BoxFusedMultipartWrite<'a, Part, Self::Recv, Self::Output, Self::Error>
fn box_fused<'a>( self, ) -> BoxFusedMultipartWrite<'a, Part, Self::Recv, Self::Output, Self::Error>
Wrap this writer, which additionally has conditions making it a
FusedMultipartWrite, in a Box, pinning it.Source§fn box_fused_local<'a>(
self,
) -> LocalBoxFusedMultipartWrite<'a, Part, Self::Recv, Self::Output, Self::Error>where
Self: Sized + FusedMultipartWrite<Part> + 'a,
fn box_fused_local<'a>(
self,
) -> LocalBoxFusedMultipartWrite<'a, Part, Self::Recv, Self::Output, Self::Error>where
Self: Sized + FusedMultipartWrite<Part> + 'a,
Wrap this writer, which additionally has conditions making it a
FusedMultipartWrite, in a Box, pinning it. Read moreSource§fn boxed_local<'a>(
self,
) -> LocalBoxMultipartWrite<'a, Part, Self::Recv, Self::Output, Self::Error>where
Self: Sized + 'a,
fn boxed_local<'a>(
self,
) -> LocalBoxMultipartWrite<'a, Part, Self::Recv, 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_part<F>(self, f: F) -> FilterPart<Self, Part, F>
fn filter_part<F>(self, f: F) -> FilterPart<Self, Part, F>
Apply a filter to this writer’s parts, returning a new writer with the
same output. Read more
Source§fn filter_map_part<P, F>(self, f: F) -> FilterMapPart<Self, Part, P, F>
fn filter_map_part<P, F>(self, f: F) -> FilterMapPart<Self, Part, P, 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_sent<T, F>(self, id: T, f: F) -> FoldSent<Self, T, F, Part>
fn fold_sent<T, F>(self, id: T, f: F) -> FoldSent<Self, T, F, Part>
Accumulate the values returned by starting a send, returning it with the
output. Read more
Source§fn for_each_recv<Fut, F>(self, f: F) -> ForEachRecv<Self, Part, Fut, F>
fn for_each_recv<Fut, F>(self, f: F) -> ForEachRecv<Self, Part, Fut, F>
Evaluate the given async closure on the associated
Self::Recv for this
writer. Read moreSource§fn fuse<F>(self, f: F) -> Fuse<Self, Part, F>
fn fuse<F>(self, f: F) -> Fuse<Self, Part, F>
Returns a new writer that fuses according to the provided closure. Read more
Source§fn lift<U, P>(self, other: U) -> Lift<Self, U, P, Part>
fn lift<U, P>(self, other: U) -> Lift<Self, U, P, Part>
Produce the parts for this writer from the output of another writer. Read more
Source§fn map_sent<R, F>(self, f: F) -> MapSent<Self, Part, R, F>
fn map_sent<R, F>(self, f: F) -> MapSent<Self, Part, R, F>
Map this writer’s return type to a different value, returning a new
multipart writer with the given return type. Read more
Source§fn map_err<E, F>(self, f: F) -> MapErr<Self, Part, E, F>
fn map_err<E, F>(self, f: F) -> MapErr<Self, Part, E, 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<T, F>(self, f: F) -> MapOk<Self, Part, T, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, Part, T, F>
Map this writer’s output type to a different type, returning a new
multipart writer with the given output 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 ready_part<P, Fut, F>(self, f: F) -> ReadyPart<Self, Part, P, Fut, F>
fn ready_part<P, Fut, F>(self, f: F) -> ReadyPart<Self, Part, P, Fut, F>
Provide a part to this writer in the output of a future. Read more