#[non_exhaustive]pub enum FlattenedDialStringError {
Empty,
ArgvSplit,
UnclosedBlock {
leg: usize,
},
TrailingNewline,
SplitSeparatorUnreadable,
}Expand description
What stops the switch from reading the dial string at all.
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.
Empty
Nothing to dial.
ArgvSplit
The API carrier’s argument split cuts the dial string into more than one
argument, leaves a quote open, or finds a quote holding a
DialStringTarget::argv_separator.
UnclosedBlock
A block never closes, which aborts the whole originate.
TrailingNewline
The text ends in \n, as a reply body does before its suffix is stripped.
SplitSeparatorUnreadable
A split the switch runs on a non-ASCII ^^ separator’s first byte reaches text no string
carries: a group or leg opening such a head, or a block with one ending in a backslash.
Trait Implementations§
Source§impl Clone for FlattenedDialStringError
impl Clone for FlattenedDialStringError
impl Copy for FlattenedDialStringError
Source§impl Debug for FlattenedDialStringError
impl Debug for FlattenedDialStringError
Source§impl Display for FlattenedDialStringError
impl Display for FlattenedDialStringError
impl Eq for FlattenedDialStringError
Source§impl Error for FlattenedDialStringError
impl Error for FlattenedDialStringError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FlattenedDialStringError
impl PartialEq for FlattenedDialStringError
impl StructuralPartialEq for FlattenedDialStringError
Auto Trait Implementations§
impl Freeze for FlattenedDialStringError
impl RefUnwindSafe for FlattenedDialStringError
impl Send for FlattenedDialStringError
impl Sync for FlattenedDialStringError
impl Unpin for FlattenedDialStringError
impl UnsafeUnpin for FlattenedDialStringError
impl UnwindSafe for FlattenedDialStringError
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
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
Compare self to
key and return true if they are equal.