Enum conjure_http::client::RequestBody
source · pub enum RequestBody<'a, W> {
Empty,
Fixed(Bytes),
Streaming(&'a mut dyn WriteBody<W>),
}
Expand description
The body of a blocking Conjure request.
Variants§
Empty
No body.
Fixed(Bytes)
A body already buffered in memory.
Streaming(&'a mut dyn WriteBody<W>)
A streaming body.
Auto Trait Implementations§
impl<'a, W> !Freeze for RequestBody<'a, W>
impl<'a, W> !RefUnwindSafe for RequestBody<'a, W>
impl<'a, W> !Send for RequestBody<'a, W>
impl<'a, W> !Sync for RequestBody<'a, W>
impl<'a, W> Unpin for RequestBody<'a, W>
impl<'a, W> !UnwindSafe for RequestBody<'a, W>
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