#[non_exhaustive]pub enum StreamFact {
Length {
declared: u64,
discovered: u64,
},
KeywordSpacing {
stream_keyword_crlf_compliant: bool,
endstream_keyword_eol_compliant: bool,
},
Decoded {
bytes: u64,
},
FilterDecoded {
filter: Identifier,
input_bytes: u64,
output_bytes: u64,
},
FilterMetadataMode {
filter: Identifier,
bytes: u64,
},
}Expand description
Stream parser fact.
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.
Length
Declared and discovered stream lengths.
KeywordSpacing
Stream keyword spacing compliance.
Fields
Decoded
Stream was decoded within configured limits.
FilterDecoded
A single stream filter decoded successfully.
Fields
§
filter: IdentifierFilter name.
FilterMetadataMode
A filter was retained in byte-preserving metadata mode.
Trait Implementations§
Source§impl Clone for StreamFact
impl Clone for StreamFact
Source§fn clone(&self) -> StreamFact
fn clone(&self) -> StreamFact
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 moreSource§impl Debug for StreamFact
impl Debug for StreamFact
Source§impl<'de> Deserialize<'de> for StreamFact
impl<'de> Deserialize<'de> for StreamFact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StreamFact
impl PartialEq for StreamFact
Source§fn eq(&self, other: &StreamFact) -> bool
fn eq(&self, other: &StreamFact) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StreamFact
impl Serialize for StreamFact
impl Eq for StreamFact
impl StructuralPartialEq for StreamFact
Auto Trait Implementations§
impl Freeze for StreamFact
impl RefUnwindSafe for StreamFact
impl Send for StreamFact
impl Sync for StreamFact
impl Unpin for StreamFact
impl UnsafeUnpin for StreamFact
impl UnwindSafe for StreamFact
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