pub struct PostcardPayload(pub Bytes);Expand description
Postcard-encoded bytes for a response payload (without schemas).
This is the format stored in the operation store. Schemas are stored
separately, deduplicated by SchemaHash. Backed by Bytes so the buffer
can be shared (cheap arc-clone) between the wire-send path and the
retry store without copying.
Tuple Fields§
§0: BytesImplementations§
Trait Implementations§
Source§impl Clone for PostcardPayload
impl Clone for PostcardPayload
Source§fn clone(&self) -> PostcardPayload
fn clone(&self) -> PostcardPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostcardPayload
impl Debug for PostcardPayload
Source§impl From<Bytes> for PostcardPayload
impl From<Bytes> for PostcardPayload
Auto Trait Implementations§
impl !Freeze for PostcardPayload
impl RefUnwindSafe for PostcardPayload
impl Send for PostcardPayload
impl Sync for PostcardPayload
impl Unpin for PostcardPayload
impl UnsafeUnpin for PostcardPayload
impl UnwindSafe for PostcardPayload
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