Enum gix_transport::client::http::PostBodyDataKind
source · pub enum PostBodyDataKind {
BoundedAndFitsIntoMemory,
Unbounded,
}
Available on crate features
blocking-client
and http-client
only.Expand description
Whether or not the post body is expected to fit into memory or not.
Variants§
BoundedAndFitsIntoMemory
We know how much data we are sending and think it will fit into memory. This allows to collect it into a buffer
and send it with Content-Length: <body-len>
.
Unbounded
We don’t know how much data we will send and assume it won’t fit into memory. This enables streaming mode.
Trait Implementations§
source§impl Clone for PostBodyDataKind
impl Clone for PostBodyDataKind
source§fn clone(&self) -> PostBodyDataKind
fn clone(&self) -> PostBodyDataKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PostBodyDataKind
impl Debug for PostBodyDataKind
source§impl From<WriteMode> for PostBodyDataKind
impl From<WriteMode> for PostBodyDataKind
source§impl Hash for PostBodyDataKind
impl Hash for PostBodyDataKind
source§impl Ord for PostBodyDataKind
impl Ord for PostBodyDataKind
source§fn cmp(&self, other: &PostBodyDataKind) -> Ordering
fn cmp(&self, other: &PostBodyDataKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PostBodyDataKind
impl PartialEq for PostBodyDataKind
source§impl PartialOrd for PostBodyDataKind
impl PartialOrd for PostBodyDataKind
impl Copy for PostBodyDataKind
impl Eq for PostBodyDataKind
impl StructuralPartialEq for PostBodyDataKind
Auto Trait Implementations§
impl Freeze for PostBodyDataKind
impl RefUnwindSafe for PostBodyDataKind
impl Send for PostBodyDataKind
impl Sync for PostBodyDataKind
impl Unpin for PostBodyDataKind
impl UnwindSafe for PostBodyDataKind
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)