pub struct PasswordAlgorithms { /* private fields */ }
Expand description
The PasswordAlgorithms Attribute
Implementations§
Source§impl PasswordAlgorithms
impl PasswordAlgorithms
Sourcepub fn new(algorithms: &[PasswordAlgorithmValue]) -> Self
pub fn new(algorithms: &[PasswordAlgorithmValue]) -> Self
Sourcepub fn algorithms(&self) -> &[PasswordAlgorithmValue]
pub fn algorithms(&self) -> &[PasswordAlgorithmValue]
Retrieve the algorithms value
§Examples
let algorithms = PasswordAlgorithms::new(&[PasswordAlgorithmValue::MD5]);
assert_eq!(algorithms.algorithms(), &[PasswordAlgorithmValue::MD5]);
Trait Implementations§
Source§impl Attribute for PasswordAlgorithms
impl Attribute for PasswordAlgorithms
Source§impl AttributeFromRaw<'_> for PasswordAlgorithms
impl AttributeFromRaw<'_> for PasswordAlgorithms
Source§fn from_raw_ref(raw: &RawAttribute<'_>) -> Result<Self, StunParseError>where
Self: Sized,
fn from_raw_ref(raw: &RawAttribute<'_>) -> Result<Self, StunParseError>where
Self: Sized,
Produce an
Attribute
from a RawAttribute
Source§fn from_raw(raw: RawAttribute<'a>) -> Result<Self, StunParseError>where
Self: Sized,
fn from_raw(raw: RawAttribute<'a>) -> Result<Self, StunParseError>where
Self: Sized,
Produce an
Attribute
from a RawAttribute
Source§impl AttributeStaticType for PasswordAlgorithms
impl AttributeStaticType for PasswordAlgorithms
Source§const TYPE: AttributeType
const TYPE: AttributeType
The
AttributeType
Source§impl AttributeWrite for PasswordAlgorithms
impl AttributeWrite for PasswordAlgorithms
Source§fn to_raw(&self) -> RawAttribute<'_>
fn to_raw(&self) -> RawAttribute<'_>
Produce a
RawAttribute
from this Attribute
Source§fn write_into_unchecked(&self, dest: &mut [u8])
fn write_into_unchecked(&self, dest: &mut [u8])
Write attribute to the provided destination buffer. Read more
Source§impl Clone for PasswordAlgorithms
impl Clone for PasswordAlgorithms
Source§fn clone(&self) -> PasswordAlgorithms
fn clone(&self) -> PasswordAlgorithms
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PasswordAlgorithms
impl Debug for PasswordAlgorithms
Source§impl Display for PasswordAlgorithms
impl Display for PasswordAlgorithms
Source§impl PartialEq for PasswordAlgorithms
impl PartialEq for PasswordAlgorithms
Source§impl TryFrom<&RawAttribute<'_>> for PasswordAlgorithms
impl TryFrom<&RawAttribute<'_>> for PasswordAlgorithms
Source§type Error = StunParseError
type Error = StunParseError
The type returned in the event of a conversion error.
impl Eq for PasswordAlgorithms
impl StructuralPartialEq for PasswordAlgorithms
Auto Trait Implementations§
impl Freeze for PasswordAlgorithms
impl RefUnwindSafe for PasswordAlgorithms
impl Send for PasswordAlgorithms
impl Sync for PasswordAlgorithms
impl Unpin for PasswordAlgorithms
impl UnwindSafe for PasswordAlgorithms
Blanket Implementations§
Source§impl<A> AttributeExt for A
impl<A> AttributeExt for A
Source§impl<A> AttributeWriteExt for Awhere
A: AttributeWrite + ?Sized,
impl<A> AttributeWriteExt for Awhere
A: AttributeWrite + ?Sized,
Source§fn write_header(&self, dest: &mut [u8]) -> Result<usize, StunWriteError>
fn write_header(&self, dest: &mut [u8]) -> Result<usize, StunWriteError>
Write the 4 byte attribute header into the provided destination buffer returning the
number of bytes written, or an error.
Source§fn write_header_unchecked(&self, dest: &mut [u8]) -> usize
fn write_header_unchecked(&self, dest: &mut [u8]) -> usize
Write the 4 byte attribute header into the provided destination buffer returning the
number of bytes written. Read more
Source§fn write_into(&self, dest: &mut [u8]) -> Result<usize, StunWriteError>
fn write_into(&self, dest: &mut [u8]) -> Result<usize, StunWriteError>
Write this attribute into the provided destination buffer returning the number of bytes
written, or an error.
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