pub fn from_id(id: Identifier) -> Option<AMQPHardError> {
        match id {
            320 => Some(AMQPHardError::CONNECTIONFORCED),
            402 => Some(AMQPHardError::INVALIDPATH),
            501 => Some(AMQPHardError::FRAMEERROR),
            502 => Some(AMQPHardError::SYNTAXERROR),
            503 => Some(AMQPHardError::COMMANDINVALID),
            504 => Some(AMQPHardError::CHANNELERROR),
            505 => Some(AMQPHardError::UNEXPECTEDFRAME),
            506 => Some(AMQPHardError::RESOURCEERROR),
            530 => Some(AMQPHardError::NOTALLOWED),
            540 => Some(AMQPHardError::NOTIMPLEMENTED),
            541 => Some(AMQPHardError::INTERNALERROR),
            _ => None,
        }
    }
/// Get the hard error corresponding to an id
Get the hard error corresponding to an id
Get the hard error corresponding to an id
pub fn from_id(id: Identifier) -> Option<AMQPHardError> {
        match id {
            320 => Some(AMQPHardError::CONNECTIONFORCED),
            402 => Some(AMQPHardError::INVALIDPATH),
            501 => Some(AMQPHardError::FRAMEERROR),
            502 => Some(AMQPHardError::SYNTAXERROR),
            503 => Some(AMQPHardError::COMMANDINVALID),
            504 => Some(AMQPHardError::CHANNELERROR),
            505 => Some(AMQPHardError::UNEXPECTEDFRAME),
            506 => Some(AMQPHardError::RESOURCEERROR),
            530 => Some(AMQPHardError::NOTALLOWED),
            540 => Some(AMQPHardError::NOTIMPLEMENTED),
            541 => Some(AMQPHardError::INTERNALERROR),
            _ => None,
        }
    }
pub fn from_id ( id : Identifier ) -> Option < AMQPHardError > { match id { 320 => Some ( AMQPHardError :: CONNECTIONFORCED ) , 402 => Some ( AMQPHardError :: INVALIDPATH ) , 501 => Some ( AMQPHardError :: FRAMEERROR ) , 502 => Some ( AMQPHardError :: SYNTAXERROR ) , 503 => Some ( AMQPHardError :: COMMANDINVALID ) , 504 => Some ( AMQPHardError :: CHANNELERROR ) , 505 => Some ( AMQPHardError :: UNEXPECTEDFRAME ) , 506 => Some ( AMQPHardError :: RESOURCEERROR ) , 530 => Some ( AMQPHardError :: NOTALLOWED ) , 540 => Some ( AMQPHardError :: NOTIMPLEMENTED ) , 541 => Some ( AMQPHardError :: INTERNALERROR ) , _ => None , } }
Get the hard error corresponding to an id
Get the hard error corresponding to an id
id
Identifier