pub struct OpenOptions {
pub strict: bool,
pub max_decoded_points: Option<usize>,
pub max_axis_points: Option<usize>,
}Expand description
Configuration for opening GRIB data.
Fields§
§strict: boolWhen true, the first malformed GRIB candidate aborts opening.
When false, candidate offsets with invalid framing are skipped and
scanning continues. Once a candidate has a valid indicator, message
length, and end marker, any indexing or decoding error is returned.
max_decoded_points: Option<usize>Maximum grid points a decoded field may contain.
This is checked while indexing and before convenience decode methods
allocate their output buffer. None disables the decoded-point limit.
max_axis_points: Option<usize>Maximum points a coordinate-axis helper may allocate.
This applies to latitude, longitude, projected x, and projected y axis
vectors produced through Message helpers. None disables the axis
limit.
Implementations§
Source§impl OpenOptions
impl OpenOptions
pub fn with_max_decoded_points(self, max: usize) -> Self
pub fn with_max_axis_points(self, max: usize) -> Self
pub fn without_decoded_point_limit(self) -> Self
pub fn without_axis_point_limit(self) -> Self
pub fn without_limits(self) -> Self
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OpenOptions
Source§impl Debug for OpenOptions
impl Debug for OpenOptions
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
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,
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