pub enum ProxyResponseBody {
Bytes(Vec<u8>),
Stream {
expected_len: u64,
reader: Box<dyn Read + Send>,
},
}Variants§
Bytes(Vec<u8>)
Stream
A length-delimited response stream. Readers used by production backends must have bounded I/O waits and must be released promptly when the request’s cancellation token is cancelled; proxy shutdown joins rather than detaches client workers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProxyResponseBody
impl !Sync for ProxyResponseBody
impl !UnwindSafe for ProxyResponseBody
impl Freeze for ProxyResponseBody
impl Send for ProxyResponseBody
impl Unpin for ProxyResponseBody
impl UnsafeUnpin for ProxyResponseBody
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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