Struct stun_rs::DecoderContextBuilder
source · [−]pub struct DecoderContextBuilder(_);Expand description
Builder class used to construct DecoderContext objects
Implementations
sourceimpl DecoderContextBuilder
impl DecoderContextBuilder
sourcepub fn with_key(self, key: HMACKey) -> Self
pub fn with_key(self, key: HMACKey) -> Self
Configure the builder to use a key to decode messages
sourcepub fn with_validation(self) -> Self
pub fn with_validation(self) -> Self
Whether this decoder will validate attributes.
sourcepub fn with_unknown_data(self) -> Self
pub fn with_unknown_data(self) -> Self
If raw data belonging to unknown attributes must be stored. When this option is enabled, the Unknown attribute will keep the raw data value whenever an unknown attribute is decoded.
sourcepub fn build(self) -> DecoderContext
pub fn build(self) -> DecoderContext
Builds a DecoderContext
Trait Implementations
sourceimpl Debug for DecoderContextBuilder
impl Debug for DecoderContextBuilder
sourceimpl Default for DecoderContextBuilder
impl Default for DecoderContextBuilder
sourcefn default() -> DecoderContextBuilder
fn default() -> DecoderContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DecoderContextBuilder
impl !Send for DecoderContextBuilder
impl !Sync for DecoderContextBuilder
impl Unpin for DecoderContextBuilder
impl UnwindSafe for DecoderContextBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more