pub struct StreamDataSpec {
pub stream_id: [u8; 16],
pub seq: u64,
pub encoding: StreamEncoding,
pub body: Value,
pub signer: Option<[u8; 32]>,
}Expand description
Fields for a STREAM_DATA frame — one chunk. body’s shape follows
encoding: Value::Bytes for StreamEncoding::Raw, any
structured Value for StreamEncoding::Msgpack (see this
section’s module-level note on why that’s still a plain CBOR value,
not a second codec).
signer: see this section’s module doc for why every real call site
in this crate (crate::stream::StreamHandle) always supplies
Some(identity.public_bytes()) — None exists only because the
reference’s own maybe_add_signer/2 treats it as optional, and two
of this module’s own differential vectors deliberately exercise that
branch (signature bytes captured before this crate carried signer
at all, still valid against the reference today).
Fields§
§stream_id: [u8; 16]§seq: u64§encoding: StreamEncoding§body: Value§signer: Option<[u8; 32]>Implementations§
Trait Implementations§
Source§impl Clone for StreamDataSpec
impl Clone for StreamDataSpec
Source§fn clone(&self) -> StreamDataSpec
fn clone(&self) -> StreamDataSpec
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 moreAuto Trait Implementations§
impl Freeze for StreamDataSpec
impl RefUnwindSafe for StreamDataSpec
impl Send for StreamDataSpec
impl Sync for StreamDataSpec
impl Unpin for StreamDataSpec
impl UnsafeUnpin for StreamDataSpec
impl UnwindSafe for StreamDataSpec
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