From cf4aed569b62dfcc9dea0b54778bba4886de06d3 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Mon, 18 May 2020 14:12:34 -0400 Subject: [PATCH] Make UnsolicitedResponse non_exhaustive That way, as we discover additional unilateral responses in the future, we won't have to make a breaking change to add them. --- src/types/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/mod.rs b/src/types/mod.rs index 9757680..8a13903 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -211,6 +211,7 @@ pub use imap_proto::StatusAttribute; /// Note that `Recent`, `Exists` and `Expunge` responses refer to the currently `SELECT`ed folder, /// so the user must take care when interpreting these. #[derive(Debug, PartialEq, Eq)] +#[non_exhaustive] pub enum UnsolicitedResponse { /// An unsolicited [`STATUS response`](https://tools.ietf.org/html/rfc3501#section-7.2.4). Status {