pub struct Payload<'a> {
pub meta: Value,
pub body: Option<Cow<'a, [u8]>>,
pub bytes: Option<u64>,
pub masked_headers: Vec<String>,
}Expand description
What a host function hands the recorder for one side of a call.
Fields§
§meta: Value§body: Option<Cow<'a, [u8]>>§bytes: Option<u64>The full size, when it differs from the body handed over: a download written to disk, or a body the host function received in another form.
masked_headers: Vec<String>Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Payload<'a>
impl<'a> RefUnwindSafe for Payload<'a>
impl<'a> Send for Payload<'a>
impl<'a> Sync for Payload<'a>
impl<'a> Unpin for Payload<'a>
impl<'a> UnsafeUnpin for Payload<'a>
impl<'a> UnwindSafe for Payload<'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