pub struct ContinueBuilder<'a> { /* private fields */ }Expand description
Builder for continuing a request with optional modifications.
Implementations§
Source§impl<'a> ContinueBuilder<'a>
impl<'a> ContinueBuilder<'a>
Sourcepub fn header(self, name: impl Into<String>, value: impl Into<String>) -> Self
pub fn header(self, name: impl Into<String>, value: impl Into<String>) -> Self
Add or override a request header.
Sourcepub fn headers(
self,
headers: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>,
) -> Self
pub fn headers( self, headers: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>, ) -> Self
Set multiple request headers.
Source§impl ContinueBuilder<'_>
impl ContinueBuilder<'_>
Sourcepub async fn await_continue(self) -> Result<(), NetworkError>
pub async fn await_continue(self) -> Result<(), NetworkError>
Await the continue operation.
Trait Implementations§
Source§impl<'a> Debug for ContinueBuilder<'a>
impl<'a> Debug for ContinueBuilder<'a>
Source§impl<'a> IntoFuture for ContinueBuilder<'a>
impl<'a> IntoFuture for ContinueBuilder<'a>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ContinueBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <ContinueBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for ContinueBuilder<'a>
impl<'a> !RefUnwindSafe for ContinueBuilder<'a>
impl<'a> Send for ContinueBuilder<'a>
impl<'a> Sync for ContinueBuilder<'a>
impl<'a> Unpin for ContinueBuilder<'a>
impl<'a> !UnwindSafe for ContinueBuilder<'a>
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