pub struct HasBinary;Expand description
Marker: this packet carries binary attachments.
Trait Implementations§
Source§impl<F, A> Acknowledge<A, HasBinary> for F
impl<F, A> Acknowledge<A, HasBinary> for F
Source§fn into_directive(self, id: u64) -> Result<Directive, PayloadError>
fn into_directive(self, id: u64) -> Result<Directive, PayloadError>
Serializes into an ack
Directive.Source§impl BinaryMarker for HasBinary
impl BinaryMarker for HasBinary
Source§type Attachments = Vec<Bytes>
type Attachments = Vec<Bytes>
Vec<Bytes> when binary is present, () when absent.Source§fn parse(
attachment: Option<Vec<Bytes>>,
) -> Result<Self::Attachments, AttachmentsError>
fn parse( attachment: Option<Vec<Bytes>>, ) -> Result<Self::Attachments, AttachmentsError>
Validates and extracts attachments from the wire-level
Option.Source§fn get(attachments: Self::Attachments) -> Option<Vec<Bytes>>
fn get(attachments: Self::Attachments) -> Option<Vec<Bytes>>
Converts typed attachments back into the wire-level
Option.fn format(attachments: &Self::Attachments, map: &mut DebugMap<'_, '_>)
Source§impl<F, E, A> Emit<HasAck<A>, HasBinary> for Fwhere
F: FnOnce(&mut AttachmentsBuilder) -> E,
E: EventType<Ack = HasAck<A>, Binary = HasBinary> + SerializePayload,
A: AckType,
impl<F, E, A> Emit<HasAck<A>, HasBinary> for Fwhere
F: FnOnce(&mut AttachmentsBuilder) -> E,
E: EventType<Ack = HasAck<A>, Binary = HasBinary> + SerializePayload,
A: AckType,
Auto Trait Implementations§
impl Freeze for HasBinary
impl RefUnwindSafe for HasBinary
impl Send for HasBinary
impl Sync for HasBinary
impl Unpin for HasBinary
impl UnsafeUnpin for HasBinary
impl UnwindSafe for HasBinary
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