pub enum Mode {
Off,
Warn,
Reject,
}Expand description
What an adapter does about a message that does not follow the schema.
Variants§
Off
Do not check. Nothing is parsed on validation’s behalf.
Warn
Check and report, but carry the message anyway.
The default where a schema is loaded: a gateway that holds the standard and stays quiet about a producer departing from it is the silent kind of wrong, while refusing traffic that flowed yesterday is a decision an operator should make deliberately.
Reject
Refuse the message and tell the peer.
Implementations§
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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