pub struct ReadOptions { /* private fields */ }Expand description
Options controlling standalone-file size limits and RDS decoding limits.
Implementations§
Source§impl ReadOptions
impl ReadOptions
pub fn limits(self, limits: Limits) -> Self
Sourcepub fn parse_options(self, options: ParseOptions) -> Self
pub fn parse_options(self, options: ParseOptions) -> Self
Replaces the complete decompressed-stream parsing configuration.
pub fn max_compressed_bytes(self, limit: usize) -> Self
pub fn max_decompressed_bytes(self, limit: usize) -> Self
Sourcepub fn native_encoding_policy(self, policy: NativeEncodingPolicy) -> Self
pub fn native_encoding_policy(self, policy: NativeEncodingPolicy) -> Self
Selects the native-string policy used when the RDS header has no
encoding, which means format 2; retained RStr values are validated
when converted, while SYMSXP print names are converted during parsing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnsafeUnpin for ReadOptions
impl UnwindSafe for ReadOptions
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