pub enum BufferPolicy {
Streamed,
Buffered {
max: usize,
},
}Expand description
Whether the transport should collect the upstream body or forward bytes as they arrive. Owned by the routing table, not by the protocol enum.
Variants§
Trait Implementations§
Source§impl Clone for BufferPolicy
impl Clone for BufferPolicy
Source§fn clone(&self) -> BufferPolicy
fn clone(&self) -> BufferPolicy
Returns a duplicate 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 BufferPolicy
impl Debug for BufferPolicy
Source§impl PartialEq for BufferPolicy
impl PartialEq for BufferPolicy
impl Copy for BufferPolicy
impl Eq for BufferPolicy
impl StructuralPartialEq for BufferPolicy
Auto Trait Implementations§
impl Freeze for BufferPolicy
impl RefUnwindSafe for BufferPolicy
impl Send for BufferPolicy
impl Sync for BufferPolicy
impl Unpin for BufferPolicy
impl UnsafeUnpin for BufferPolicy
impl UnwindSafe for BufferPolicy
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