pub enum MessageRewrite {
Keep,
Rewrite,
Replace(Vec<u8>),
Drop,
}Expand description
Outcome for a message rewrite operation.
Variants§
Keep
Leave the message unchanged.
Rewrite
Encode the mutated decoded message and replace the payload.
Use this after changing a decoded protobuf message in place.
Replace(Vec<u8>)
Replace the message payload with the provided bytes.
Drop
Drop the message entirely.
Auto Trait Implementations§
impl Freeze for MessageRewrite
impl RefUnwindSafe for MessageRewrite
impl Send for MessageRewrite
impl Sync for MessageRewrite
impl Unpin for MessageRewrite
impl UnsafeUnpin for MessageRewrite
impl UnwindSafe for MessageRewrite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more