pub struct StreamInput {
pub record: RecordInput,
pub stream: Identifier,
pub sequence: u64,
}Fields§
§record: RecordInput§stream: Identifier§sequence: u64Implementations§
Source§impl StreamInput
impl StreamInput
pub fn borrowed(&self) -> StreamWrite<'_>
Trait Implementations§
Source§impl Clone for StreamInput
impl Clone for StreamInput
Source§fn clone(&self) -> StreamInput
fn clone(&self) -> StreamInput
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 StreamInput
impl Debug for StreamInput
Source§impl Described for StreamInput
impl Described for StreamInput
impl Eq for StreamInput
Source§impl MemorySize for StreamInput
impl MemorySize for StreamInput
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl PartialEq for StreamInput
impl PartialEq for StreamInput
impl StructuralPartialEq for StreamInput
Source§impl Value for StreamInput
impl Value for StreamInput
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn read(input: &mut Reader<'_>) -> Result<StreamInput, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for StreamInput
impl RefUnwindSafe for StreamInput
impl Send for StreamInput
impl Sync for StreamInput
impl Unpin for StreamInput
impl UnsafeUnpin for StreamInput
impl UnwindSafe for StreamInput
Blanket Implementations§
impl<T> Allocation for T
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