pub struct EncodeSectorOptions<'a, RE>where
RE: RecordsEncoder,{
pub sector_index: SectorIndex,
pub records_encoder: &'a mut RE,
pub abort_early: &'a AtomicBool,
}Expand description
Options for encoding a sector.
Sector output and sector metadata output should be either empty (in which case they’ll be resized to correct size automatically) or correctly sized from the beginning or else error will be returned.
Fields§
§sector_index: SectorIndexSector index
records_encoder: &'a mut RERecords encoding instance
abort_early: &'a AtomicBoolWhether encoding should be aborted early
Trait Implementations§
Auto Trait Implementations§
impl<'a, RE> Freeze for EncodeSectorOptions<'a, RE>
impl<'a, RE> RefUnwindSafe for EncodeSectorOptions<'a, RE>where
RE: RefUnwindSafe,
impl<'a, RE> Send for EncodeSectorOptions<'a, RE>where
RE: Send,
impl<'a, RE> Sync for EncodeSectorOptions<'a, RE>where
RE: Sync,
impl<'a, RE> Unpin for EncodeSectorOptions<'a, RE>
impl<'a, RE> !UnwindSafe for EncodeSectorOptions<'a, RE>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more