pub struct BlockOpts {
pub has_block_info: bool,
pub has_custom_serialization: bool,
pub read_buffer_bytes: usize,
}Expand description
Options that describe Native block framing.
Native files and native TCP protocol use different optional fields. TCP values depend on negotiated server revision. Incorrect values prevent block decoding.
Fields§
§has_block_info: boolIncludes 8-byte BlockInfo prefix used by TCP revision 51903 and later.
has_custom_serialization: boolIncludes custom serialization flag used by TCP revision 54454 and later.
read_buffer_bytes: usizeRead buffer size in bytes. Zero selects 8 KiB default.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockOpts
impl RefUnwindSafe for BlockOpts
impl Send for BlockOpts
impl Sync for BlockOpts
impl Unpin for BlockOpts
impl UnsafeUnpin for BlockOpts
impl UnwindSafe for BlockOpts
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