pub struct StreamReaderConfig {
pub buffer_size: usize,
pub validate_checksums: bool,
pub max_metadata_size: usize,
pub max_decoded_metadata_size: usize,
pub max_tensor_count: usize,
}Expand description
Configuration for stream reading
Fields§
§buffer_size: usizePreferred buffer size for tensor reads; temporary chunks are capped at 1 MiB.
validate_checksums: boolRequest checksum validation.
GGUF has no standard checksum field; setting this to true returns
GGUFError::FeatureUnavailable.
max_metadata_size: usizeMaximum number of serialized metadata bytes to read.
max_decoded_metadata_size: usizeMaximum decoded allocation budget for metadata.
max_tensor_count: usizeMaximum number of tensors to prevent DoS
Trait Implementations§
Source§impl Clone for StreamReaderConfig
impl Clone for StreamReaderConfig
Source§impl Debug for StreamReaderConfig
impl Debug for StreamReaderConfig
Auto Trait Implementations§
impl Freeze for StreamReaderConfig
impl RefUnwindSafe for StreamReaderConfig
impl Send for StreamReaderConfig
impl Sync for StreamReaderConfig
impl Unpin for StreamReaderConfig
impl UnsafeUnpin for StreamReaderConfig
impl UnwindSafe for StreamReaderConfig
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