#[non_exhaustive]pub enum EarlyHeader {
Gguf(GgufHeader),
Safetensors(SafetensorsHeader),
}Expand description
The header read so far from the start of a file being received (early_header).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gguf(GgufHeader)
Safetensors(SafetensorsHeader)
Trait Implementations§
Source§impl Clone for EarlyHeader
impl Clone for EarlyHeader
Source§impl Debug for EarlyHeader
impl Debug for EarlyHeader
Source§impl PartialEq for EarlyHeader
impl PartialEq for EarlyHeader
impl StructuralPartialEq for EarlyHeader
Auto Trait Implementations§
impl Forget for EarlyHeader
impl Freeze for EarlyHeader
impl Move for EarlyHeader
impl RefUnwindSafe for EarlyHeader
impl Send for EarlyHeader
impl Sync for EarlyHeader
impl Unpin for EarlyHeader
impl UnsafeUnpin for EarlyHeader
impl UnwindSafe for EarlyHeader
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