diff --git a/src/builder.rs b/src/builder.rs index 9b7d525..668cec5 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -6,6 +6,7 @@ use crate::RtpPacket; /// Errors produced when wrting a packet #[derive(Debug, PartialEq, Eq, thiserror::Error)] +#[non_exhaustive] pub enum RtpWriteError { /// Output buffer is not large enough to fit the resulting buffer. The requested size is /// returned. diff --git a/src/packet.rs b/src/packet.rs index 27091ce..8c93188 100644 --- a/src/packet.rs +++ b/src/packet.rs @@ -4,6 +4,7 @@ use std::fmt; /// An error produced when parsing a packet. #[derive(Debug, thiserror::Error)] +#[non_exhaustive] pub enum RtpParseError { /// Version is unsupported. This implementation only supports version 2. #[error("Unsupported RTP version {}", .0)]