pub enum Batch {
Single(SingleBatch),
Span(SpanBatch),
}
Expand description
A Batch.
Variants§
Implementations§
Source§impl Batch
impl Batch
Sourcepub fn decode(
r: &mut &[u8],
cfg: &RollupConfig,
) -> Result<Batch, BatchDecodingError>
pub fn decode( r: &mut &[u8], cfg: &RollupConfig, ) -> Result<Batch, BatchDecodingError>
Attempts to decode a batch from a reader.
Trait Implementations§
impl Eq for Batch
impl StructuralPartialEq for Batch
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnwindSafe for Batch
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