#[non_exhaustive]pub enum BlockParse {
PairSplitCleans,
}Expand description
Which revision of the switch’s bracket-block parser a dial string is rendered for.
How many escape-consuming passes a block meets is the switch’s to change, and
every escaped quote and backslash depends on it. It covers {}, <> and []
escaping only: the inline action list and the quote pre-scan ahead of a []
block are other parsers. Which revisions a FreeSWITCH version is known to run
is documented in docs/dial-string-format.md.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PairSplitCleans
Both of the block’s own splits, on the separator and on =, run the
escape-consuming cleanup.
Implementations§
Source§impl BlockParse
impl BlockParse
Sourcepub fn for_version(
version: &FreeswitchVersion,
) -> Result<Self, UnvouchedVersion>
pub fn for_version( version: &FreeswitchVersion, ) -> Result<Self, UnvouchedVersion>
The revision a FreeSWITCH release is vouched to run, or why it cannot be.
A release is vouched for only inside a range whose block parse
(switch_event.c:1737, switch_utils.c:2804) was checked at every tag and
whose line passed the live escaping suite. Anything else, a development
build included, is refused; name a revision explicitly for it instead.
Trait Implementations§
Source§impl Clone for BlockParse
impl Clone for BlockParse
impl Copy for BlockParse
Source§impl Debug for BlockParse
impl Debug for BlockParse
Source§impl Default for BlockParse
impl Default for BlockParse
Source§impl<'de> Deserialize<'de> for BlockParse
impl<'de> Deserialize<'de> for BlockParse
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>,
Source§impl Display for BlockParse
impl Display for BlockParse
impl Eq for BlockParse
Source§impl FromStr for BlockParse
impl FromStr for BlockParse
Source§impl Hash for BlockParse
impl Hash for BlockParse
Source§impl PartialEq for BlockParse
impl PartialEq for BlockParse
Source§impl Serialize for BlockParse
impl Serialize for BlockParse
impl StructuralPartialEq for BlockParse
Auto Trait Implementations§
impl Freeze for BlockParse
impl RefUnwindSafe for BlockParse
impl Send for BlockParse
impl Sync for BlockParse
impl Unpin for BlockParse
impl UnsafeUnpin for BlockParse
impl UnwindSafe for BlockParse
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.