pub fn match_command(command: &at::Command, initialized: bool) -> Result<Self, ProcedureError> {
        match command {
            at::Command::Brsf { .. }
            | at::Command::Bac { .. }
            | at::Command::CindTest { .. }
            | at::Command::CindRead { .. }
            | at::Command::ChldTest { .. }
            | at::Command::BindTest { .. }
            | at::Command::BindRead { .. } => Ok(Self::SlcInitialization),
            at::Command::Cmer { .. } if initialized => Ok(Self::Indicators),
            at::Command::Cmer { .. } => Ok(Self::SlcInitialization),
            at::Command::Nrec { .. } => Ok(Self::Nrec),
            at::Command::Cops { .. } | at::Command::CopsRead { .. } => {
                Ok(Self::QueryOperatorSelection)
            }
            at::Command::Cmee { .. } => Ok(Self::ExtendedErrors),
            at::Command::Ccwa { .. } => Ok(Self::CallWaitingNotifications),
            at::Command::Clcc { .. } => Ok(Self::QueryCurrentCalls),
            at::Command::Clip { .. } => Ok(Self::CallLineIdentNotifications),
            at::Command::Cnum { .. } => Ok(Self::SubscriberNumberInformation),
            at::Command::Vgs { .. } | at::Command::Vgm { .. } => Ok(Self::VolumeSynchronization),
            at::Command::Vts { .. } => Ok(Self::Dtmf),
            at::Command::Answer { .. } => Ok(Self::Answer),
            at::Command::Chup { .. } => Ok(Self::HangUp),
            at::Command::Biev { .. } => Ok(Self::TransferHfIndicator),
            at::Command::Bia { .. } => Ok(Self::Indicators),
            at::Command::Chld { .. } => Ok(Self::Hold),
            at::Command::AtdNumber { .. }
            | at::Command::AtdMemory { .. }
            | at::Command::Bldn { .. } => Ok(Self::InitiateCall),
            _ => Err(ProcedureError::NotImplemented),
        }
    }
/// Matches the HF `command` to a procedure. `initialized` represents the initialization state
/// of the Service Level Connection.
///
/// Returns an error if the command is unable to be matched.
Matches the HF `command` to a procedure. `initialized` represents the initialization state
of the Service Level Connection.

Returns an error if the command is unable to be matched.
Matches the HF ` command ` to a procedure . ` initialized ` represents the initialization state of the Service Level Connection . Returns an error if the command is unable to be matched .
pub fn match_command(command: &at::Command, initialized: bool) -> Result<Self, ProcedureError> {
        match command {
            at::Command::Brsf { .. }
            | at::Command::Bac { .. }
            | at::Command::CindTest { .. }
            | at::Command::CindRead { .. }
            | at::Command::ChldTest { .. }
            | at::Command::BindTest { .. }
            | at::Command::BindRead { .. } => Ok(Self::SlcInitialization),
            at::Command::Cmer { .. } if initialized => Ok(Self::Indicators),
            at::Command::Cmer { .. } => Ok(Self::SlcInitialization),
            at::Command::Nrec { .. } => Ok(Self::Nrec),
            at::Command::Cops { .. } | at::Command::CopsRead { .. } => {
                Ok(Self::QueryOperatorSelection)
            }
            at::Command::Cmee { .. } => Ok(Self::ExtendedErrors),
            at::Command::Ccwa { .. } => Ok(Self::CallWaitingNotifications),
            at::Command::Clcc { .. } => Ok(Self::QueryCurrentCalls),
            at::Command::Clip { .. } => Ok(Self::CallLineIdentNotifications),
            at::Command::Cnum { .. } => Ok(Self::SubscriberNumberInformation),
            at::Command::Vgs { .. } | at::Command::Vgm { .. } => Ok(Self::VolumeSynchronization),
            at::Command::Vts { .. } => Ok(Self::Dtmf),
            at::Command::Answer { .. } => Ok(Self::Answer),
            at::Command::Chup { .. } => Ok(Self::HangUp),
            at::Command::Biev { .. } => Ok(Self::TransferHfIndicator),
            at::Command::Bia { .. } => Ok(Self::Indicators),
            at::Command::Chld { .. } => Ok(Self::Hold),
            at::Command::AtdNumber { .. }
            | at::Command::AtdMemory { .. }
            | at::Command::Bldn { .. } => Ok(Self::InitiateCall),
            _ => Err(ProcedureError::NotImplemented),
        }
    }
pub fn match_command ( command : & at :: Command , initialized : bool ) -> Result < Self , ProcedureError > { match command { at :: Command :: Brsf { .. } | at :: Command :: Bac { .. } | at :: Command :: CindTest { .. } | at :: Command :: CindRead { .. } | at :: Command :: ChldTest { .. } | at :: Command :: BindTest { .. } | at :: Command :: BindRead { .. } => Ok ( Self :: SlcInitialization ) , at :: Command :: Cmer { .. } if initialized => Ok ( Self :: Indicators ) , at :: Command :: Cmer { .. } => Ok ( Self :: SlcInitialization ) , at :: Command :: Nrec { .. } => Ok ( Self :: Nrec ) , at :: Command :: Cops { .. } | at :: Command :: CopsRead { .. } => { Ok ( Self :: QueryOperatorSelection ) } at :: Command :: Cmee { .. } => Ok ( Self :: ExtendedErrors ) , at :: Command :: Ccwa { .. } => Ok ( Self :: CallWaitingNotifications ) , at :: Command :: Clcc { .. } => Ok ( Self :: QueryCurrentCalls ) , at :: Command :: Clip { .. } => Ok ( Self :: CallLineIdentNotifications ) , at :: Command :: Cnum { .. } => Ok ( Self :: SubscriberNumberInformation ) , at :: Command :: Vgs { .. } | at :: Command :: Vgm { .. } => Ok ( Self :: VolumeSynchronization ) , at :: Command :: Vts { .. } => Ok ( Self :: Dtmf ) , at :: Command :: Answer { .. } => Ok ( Self :: Answer ) , at :: Command :: Chup { .. } => Ok ( Self :: HangUp ) , at :: Command :: Biev { .. } => Ok ( Self :: TransferHfIndicator ) , at :: Command :: Bia { .. } => Ok ( Self :: Indicators ) , at :: Command :: Chld { .. } => Ok ( Self :: Hold ) , at :: Command :: AtdNumber { .. } | at :: Command :: AtdMemory { .. } | at :: Command :: Bldn { .. } => Ok ( Self :: InitiateCall ) , _ => Err ( ProcedureError :: NotImplemented ) , } }
Matches the HF `command` to a procedure.
Matches the HF ` command ` to a procedure .
command
&at::Command
initialized
bool
command
&at::Command
initialized
bool