pub struct FileBatch {
pub offset: u64,
pub bytes: Vec<u8>,
}Fields§
§offset: u64§bytes: Vec<u8>Trait Implementations§
Source§impl Borrow<FileBatch> for FileReadBatch
impl Borrow<FileBatch> for FileReadBatch
impl Eq for FileBatch
Source§impl MemorySize for FileBatch
impl MemorySize for FileBatch
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.impl StructuralPartialEq for FileBatch
Source§impl Value for FileBatch
impl Value for FileBatch
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<FileBatch, 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 FileBatch
impl RefUnwindSafe for FileBatch
impl Send for FileBatch
impl Sync for FileBatch
impl Unpin for FileBatch
impl UnsafeUnpin for FileBatch
impl UnwindSafe for FileBatch
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