pub struct Output<'a> { /* private fields */ }Expand description
Where an engine writes: the reply body, reused between requests, with a size budget.
Implementations§
Source§impl<'a> Output<'a>
impl<'a> Output<'a>
Sourcepub fn new(buf: &'a mut Vec<u8>, limit: usize) -> Self
pub fn new(buf: &'a mut Vec<u8>, limit: usize) -> Self
An output over buf, refusing to grow past limit bytes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for Output<'a>
impl<'a> Forget for Output<'a>
impl<'a> Freeze for Output<'a>
impl<'a> RefUnwindSafe for Output<'a>
impl<'a> Send for Output<'a>
impl<'a> Sync for Output<'a>
impl<'a> Unpin for Output<'a>
impl<'a> UnsafeUnpin for Output<'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