pub struct InputChunk {
pub video: Bytes,
pub audio: Bytes,
pub console: Bytes,
pub host_messages: Vec<Bytes>,
}Expand description
Input chunk.
Contains data for each stream.
Fields§
§video: Bytes§audio: Bytes§console: Bytes§host_messages: Vec<Bytes>Messages exchanged between the service and the host (builder/monitor etc.).
Implementations§
Source§impl InputChunk
impl InputChunk
Sourcepub fn decode_signed(input: Bytes, key: &VerificationKey) -> Result<Self, Error>
pub fn decode_signed(input: Bytes, key: &VerificationKey) -> Result<Self, Error>
Decode signed input chunk.
Checks the signature at the end of the input against the provided key before doing the usual decoding.
Sourcepub fn decode_multiple_signed(
extrinsic: Bytes,
key: &VerificationKey,
) -> Result<Vec<Self>, Error>
pub fn decode_multiple_signed( extrinsic: Bytes, key: &VerificationKey, ) -> Result<Vec<Self>, Error>
Decode multiple signed chunks from the extrinsic.
Trait Implementations§
Source§impl Clone for InputChunk
impl Clone for InputChunk
Source§fn clone(&self) -> InputChunk
fn clone(&self) -> InputChunk
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 InputChunk
impl Debug for InputChunk
Source§impl Default for InputChunk
impl Default for InputChunk
Source§fn default() -> InputChunk
fn default() -> InputChunk
Returns the “default value” for a type. Read more
Source§impl Encode for InputChunk
impl Encode for InputChunk
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl EncodeLike for InputChunk
Auto Trait Implementations§
impl !Freeze for InputChunk
impl RefUnwindSafe for InputChunk
impl Send for InputChunk
impl Sync for InputChunk
impl Unpin for InputChunk
impl UnsafeUnpin for InputChunk
impl UnwindSafe for InputChunk
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