pub trait Verifiable {
    fn verify(&self, input: &[u8], cxt: &DecoderContext) -> bool;
}
Expand description

Trait implemented by all StunAttribute that required validation when they are decoded

Required Methods

Performs attribute validation on decoding

Arguments:
  • input: raw bytes buffer
  • ctx: the decoder context
Returns

True is the validations success or False if there is an error during the validation

Implementors