pub fn from_id(id: Identifier) -> Option<AMQPSoftError> {
        match id {
            311 => Some(AMQPSoftError::CONTENTTOOLARGE),
            312 => Some(AMQPSoftError::NOROUTE),
            313 => Some(AMQPSoftError::NOCONSUMERS),
            403 => Some(AMQPSoftError::ACCESSREFUSED),
            404 => Some(AMQPSoftError::NOTFOUND),
            405 => Some(AMQPSoftError::RESOURCELOCKED),
            406 => Some(AMQPSoftError::PRECONDITIONFAILED),
            _ => None,
        }
    }
/// Get the soft error corresponding to an id
Get the soft error corresponding to an id
Get the soft error corresponding to an id
pub fn from_id(id: Identifier) -> Option<AMQPSoftError> {
        match id {
            311 => Some(AMQPSoftError::CONTENTTOOLARGE),
            312 => Some(AMQPSoftError::NOROUTE),
            313 => Some(AMQPSoftError::NOCONSUMERS),
            403 => Some(AMQPSoftError::ACCESSREFUSED),
            404 => Some(AMQPSoftError::NOTFOUND),
            405 => Some(AMQPSoftError::RESOURCELOCKED),
            406 => Some(AMQPSoftError::PRECONDITIONFAILED),
            _ => None,
        }
    }
pub fn from_id ( id : Identifier ) -> Option < AMQPSoftError > { match id { 311 => Some ( AMQPSoftError :: CONTENTTOOLARGE ) , 312 => Some ( AMQPSoftError :: NOROUTE ) , 313 => Some ( AMQPSoftError :: NOCONSUMERS ) , 403 => Some ( AMQPSoftError :: ACCESSREFUSED ) , 404 => Some ( AMQPSoftError :: NOTFOUND ) , 405 => Some ( AMQPSoftError :: RESOURCELOCKED ) , 406 => Some ( AMQPSoftError :: PRECONDITIONFAILED ) , _ => None , } }
Get the soft error corresponding to an id
Get the soft error corresponding to an id
id
Identifier