pub enum LengthStyle {
Fixed,
Byte,
Short,
Long,
Chunked,
}Expand description
How the value that follows a TYPE_INFO announces its own length.
Variants§
Fixed
The type byte implies the size and the value can never be NULL.
Byte
One length byte; zero means NULL.
Short
Two length bytes; 0xFFFF means NULL.
Long
A text pointer, then four length bytes. text, ntext and image.
Chunked
Partially length-prefixed: a total length then a run of chunks. This is
how every (max) column arrives, and it is the only shape whose length
may genuinely be unknown when the first byte is sent.
Trait Implementations§
Source§impl Clone for LengthStyle
impl Clone for LengthStyle
Source§fn clone(&self) -> LengthStyle
fn clone(&self) -> LengthStyle
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 LengthStyle
Source§impl Debug for LengthStyle
impl Debug for LengthStyle
impl Eq for LengthStyle
Source§impl PartialEq for LengthStyle
impl PartialEq for LengthStyle
impl StructuralPartialEq for LengthStyle
Auto Trait Implementations§
impl Freeze for LengthStyle
impl RefUnwindSafe for LengthStyle
impl Send for LengthStyle
impl Sync for LengthStyle
impl Unpin for LengthStyle
impl UnsafeUnpin for LengthStyle
impl UnwindSafe for LengthStyle
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