-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PushError::LimitExceeded
.
#349
base: main
Are you sure you want to change the base?
Conversation
This is useful when wanting to "reserve" space such that pushes at one point in the code to the message will leave behind enough room for subsequent pushes later, e.g. of OPT or TSIG RRs.
Note: This is a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good change to me, just one comment about some stuff that was already there.
@@ -2332,6 +2332,7 @@ impl<Target: Composer> Truncate for TreeCompressor<Target> { | |||
#[derive(Clone, Copy, Debug)] | |||
pub enum PushError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be nice to document these variants to explain what they mean in rustdoc.
As discussed in the comments on #348 this PR introduces a new
PushError
variant for the limit exceeded case.This was not done in the original PR as it is a breaking change.