#[non_exhaustive]pub enum ParseHeaderError {
ChannelState(ParseChannelStateError),
CallState(ParseCallStateError),
AnswerState(ParseAnswerStateError),
CallDirection(ParseCallDirectionError),
HangupCause(ParseHangupCauseError),
GatewayRegState(ParseGatewayRegStateError),
LoopbackLeg(ParseLoopbackLegError),
Priority(ParsePriorityError),
Timetable(ParseTimetableError),
SipStatusCode(ParseIntError),
}Expand description
The union a caller reaches when ?-ing several typed HeaderLookup
accessors into one error type.
Each accessor returns its own parser’s error; a function calling more than
one of them has nothing to name in its return type without this. Display
and source both defer to the inner error, so
nothing is lost by going through it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ChannelState(ParseChannelStateError)
From channel_state and its siblings.
CallState(ParseCallStateError)
From call_state.
AnswerState(ParseAnswerStateError)
From answer_state.
CallDirection(ParseCallDirectionError)
From call_direction.
HangupCause(ParseHangupCauseError)
From hangup_cause.
GatewayRegState(ParseGatewayRegStateError)
From gateway_reg_state.
LoopbackLeg(ParseLoopbackLegError)
From loopback_leg.
Priority(ParsePriorityError)
From priority.
Timetable(ParseTimetableError)
From caller_timetable and
other_leg_timetable.
SipStatusCode(ParseIntError)
From sip_status_code, whose header
parses as a plain integer.
Constructed by name, never through ?: ParseIntError belongs to no
header, and a From for it would relabel every unrelated integer parse
in the caller as this one.
Trait Implementations§
Source§impl Clone for ParseHeaderError
impl Clone for ParseHeaderError
Source§fn clone(&self) -> ParseHeaderError
fn clone(&self) -> ParseHeaderError
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 ParseHeaderError
impl Debug for ParseHeaderError
Source§impl Display for ParseHeaderError
impl Display for ParseHeaderError
impl Eq for ParseHeaderError
Source§impl Error for ParseHeaderError
impl Error for ParseHeaderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ParseAnswerStateError> for ParseHeaderError
impl From<ParseAnswerStateError> for ParseHeaderError
Source§fn from(e: ParseAnswerStateError) -> Self
fn from(e: ParseAnswerStateError) -> Self
Source§impl From<ParseCallDirectionError> for ParseHeaderError
impl From<ParseCallDirectionError> for ParseHeaderError
Source§fn from(e: ParseCallDirectionError) -> Self
fn from(e: ParseCallDirectionError) -> Self
Source§impl From<ParseCallStateError> for ParseHeaderError
impl From<ParseCallStateError> for ParseHeaderError
Source§fn from(e: ParseCallStateError) -> Self
fn from(e: ParseCallStateError) -> Self
Source§impl From<ParseChannelStateError> for ParseHeaderError
impl From<ParseChannelStateError> for ParseHeaderError
Source§fn from(e: ParseChannelStateError) -> Self
fn from(e: ParseChannelStateError) -> Self
Source§impl From<ParseGatewayRegStateError> for ParseHeaderError
impl From<ParseGatewayRegStateError> for ParseHeaderError
Source§fn from(e: ParseGatewayRegStateError) -> Self
fn from(e: ParseGatewayRegStateError) -> Self
Source§impl From<ParseHangupCauseError> for ParseHeaderError
impl From<ParseHangupCauseError> for ParseHeaderError
Source§fn from(e: ParseHangupCauseError) -> Self
fn from(e: ParseHangupCauseError) -> Self
Source§impl From<ParseLoopbackLegError> for ParseHeaderError
impl From<ParseLoopbackLegError> for ParseHeaderError
Source§fn from(e: ParseLoopbackLegError) -> Self
fn from(e: ParseLoopbackLegError) -> Self
Source§impl From<ParsePriorityError> for ParseHeaderError
Available on crate feature esl only.
impl From<ParsePriorityError> for ParseHeaderError
esl only.Source§fn from(e: ParsePriorityError) -> Self
fn from(e: ParsePriorityError) -> Self
Source§impl From<ParseTimetableError> for ParseHeaderError
impl From<ParseTimetableError> for ParseHeaderError
Source§fn from(e: ParseTimetableError) -> Self
fn from(e: ParseTimetableError) -> Self
Source§impl PartialEq for ParseHeaderError
impl PartialEq for ParseHeaderError
impl StructuralPartialEq for ParseHeaderError
Auto Trait Implementations§
impl Freeze for ParseHeaderError
impl RefUnwindSafe for ParseHeaderError
impl Send for ParseHeaderError
impl Sync for ParseHeaderError
impl Unpin for ParseHeaderError
impl UnsafeUnpin for ParseHeaderError
impl UnwindSafe for ParseHeaderError
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§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.