pub struct Numbering { /* private fields */ }Expand description
The record decision on the outlet side, for one connection.
The writer calls Numbering::before with the number of each sample that
it is about to write. The result tells whether a record goes first.
Implementations§
Source§impl Numbering
impl Numbering
Sourcepub fn start(&mut self, number: u64, out: &mut Vec<u8>)
pub fn start(&mut self, number: u64, out: &mut Vec<u8>)
Write the record that opens a connection. number is the number
that the next sample will get.
The record goes out at once, before any sample. A gap that happened before this connection is then visible to the inlet at once, also on a stream that sends no more samples for a long time.
Trait Implementations§
impl Eq for Numbering
impl StructuralPartialEq for Numbering
Auto Trait Implementations§
impl Forget for Numbering
impl Freeze for Numbering
impl Move for Numbering
impl RefUnwindSafe for Numbering
impl Send for Numbering
impl Sync for Numbering
impl Unpin for Numbering
impl UnsafeUnpin for Numbering
impl UnwindSafe for Numbering
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