#[non_exhaustive]pub enum ParseWarning {
UnclosedVariable {
name: String,
},
UnparseableChannelData {
line: String,
},
UnrecognizedCodecLine {
line: String,
source: Option<CodecParseError>,
},
UnexpectedCodecContinuation {
line: String,
},
OversizeLine {
bytes: usize,
},
AttachedOverflow {
line: String,
},
UnreadableValue {
reading: SessionReading,
value: String,
},
}Expand description
A parsing anomaly, attached to the entry whose lines produced it.
The set is closed and every kind is named — see docs/design-rationale.md.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnclosedVariable
A CHANNEL_DATA variable opened its [ and the block ended before the ].
The value collected so far is still recorded.
UnparseableChannelData
A line inside a CHANNEL_DATA block matched neither the field nor the variable shape, so it contributed nothing to the block.
UnrecognizedCodecLine
A codec negotiation line matched no known trace shape, or its bracketed token would not parse. That codec is missing from the block.
UnexpectedCodecContinuation
A continuation line arrived while a codec negotiation block was open. The trace has no continuations, so the line belongs to nothing.
OversizeLine
The formatted line exceeded mod_logfile’s write buffer, so the record
was cut short and lost its trailing newline. bytes is the formatted
length, prefix included.
AttachedOverflow
The entry’s attached lines outgrew the offsets addressing them, so this
line could not be stored. Counted in
ParseStats::lines_dropped.
UnreadableValue
A per-session reading met a value its vocabulary does not know — either FreeSWITCH gained one or the line is corrupt. The state that reading feeds keeps its last resolved value.
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParseWarning
impl Debug for ParseWarning
Source§impl Display for ParseWarning
impl Display for ParseWarning
impl Eq for ParseWarning
Source§impl PartialEq for ParseWarning
impl PartialEq for ParseWarning
impl StructuralPartialEq for ParseWarning
Auto Trait Implementations§
impl Freeze for ParseWarning
impl RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin for ParseWarning
impl UnsafeUnpin for ParseWarning
impl UnwindSafe for ParseWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.