pub struct Job { /* private fields */ }Implementations§
Source§impl Job
impl Job
pub fn new(raster: &Raster, profile: Profile) -> Result<Self, Error>
pub fn body(&self) -> &[u8] ⓘ
Sourcepub fn writes(&self, max_write: usize) -> Result<Vec<Vec<u8>>, Error>
pub fn writes(&self, max_write: usize) -> Result<Vec<Vec<u8>>, Error>
Ordered characteristic values: header first, then indexed body chunks.
max_write is the usable characteristic value length, NOT the raw ATT MTU.
Every chunk reserves one index byte and two final-magic bytes, even when
non-final. A job may fit the raster limit but exceed the chunk index space.
Trait Implementations§
impl Eq for Job
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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