pub fn is_duplicate_listener_exception(&self) -> bool {
        matches!(
            &self.kind,
            CreateListenerErrorKind::DuplicateListenerException(_)
        )
    }
/// Returns `true` if the error kind is `CreateListenerErrorKind::DuplicateListenerException`.
Returns `true` if the error kind is `CreateListenerErrorKind::DuplicateListenerException`.
Returns ` true ` if the error kind is ` CreateListenerErrorKind :: DuplicateListenerException ` .
pub fn is_duplicate_listener_exception(&self) -> bool {
        matches!(
            &self.kind,
            CreateListenerErrorKind::DuplicateListenerException(_)
        )
    }
pub fn is_duplicate_listener_exception ( & self ) -> bool { matches ! ( self kind CreateListenerErrorKind DuplicateListenerException ( ) ) }
Returns `true` if the error kind is `CreateListenerErrorKind::DuplicateListenerException`.
Returns ` true ` if the error kind is ` CreateListenerErrorKind :: DuplicateListenerException ` .
&self
&self