pub struct AerConfig {
pub big_endian: bool,
pub validate_coordinates: bool,
pub max_x: u16,
pub max_y: u16,
pub skip_invalid_events: bool,
pub generate_timestamps: bool,
pub timestamp_mode: TimestampMode,
pub start_timestamp: f64,
pub time_increment: f64,
pub max_events: Option<usize>,
pub bytes_per_event: usize,
}Expand description
Configuration for AER reader
Fields§
§big_endian: boolEndianness of the AER data (true = big endian, false = little endian)
validate_coordinates: boolValidate coordinate bounds (0-511 for 9-bit coordinates)
max_x: u16Maximum allowed x coordinate (default 511 for 9-bit)
max_y: u16Maximum allowed y coordinate (default 511 for 9-bit)
skip_invalid_events: boolSkip invalid events instead of failing
generate_timestamps: boolGenerate timestamps based on event order
timestamp_mode: TimestampModeTimestamp generation mode
start_timestamp: f64Starting timestamp for generated timestamps
time_increment: f64Time increment between events (seconds)
max_events: Option<usize>Maximum number of events to read (None = all)
bytes_per_event: usizeBytes per event (2 or 4, depending on storage format)
Implementations§
Source§impl AerConfig
impl AerConfig
Sourcepub fn with_endianness(self, big_endian: bool) -> Self
pub fn with_endianness(self, big_endian: bool) -> Self
Set endianness
Sourcepub fn with_coordinate_bounds(self, max_x: u16, max_y: u16) -> Self
pub fn with_coordinate_bounds(self, max_x: u16, max_y: u16) -> Self
Set coordinate bounds
Sourcepub fn with_timestamp_generation(
self,
generate: bool,
mode: TimestampMode,
start: f64,
increment: f64,
) -> Self
pub fn with_timestamp_generation( self, generate: bool, mode: TimestampMode, start: f64, increment: f64, ) -> Self
Set timestamp generation parameters
Sourcepub fn with_bytes_per_event(self, bytes: usize) -> Self
pub fn with_bytes_per_event(self, bytes: usize) -> Self
Set bytes per event
Sourcepub fn with_validation(self, validate: bool, skip_invalid: bool) -> Self
pub fn with_validation(self, validate: bool, skip_invalid: bool) -> Self
Enable validation with error skipping
Sourcepub fn with_max_events(self, max_events: Option<usize>) -> Self
pub fn with_max_events(self, max_events: Option<usize>) -> Self
Set maximum events to read
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AerConfig
impl RefUnwindSafe for AerConfig
impl Send for AerConfig
impl Sync for AerConfig
impl Unpin for AerConfig
impl UnsafeUnpin for AerConfig
impl UnwindSafe for AerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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