pub struct IcePassword(/* private fields */);
Expand description
Secret used for a client authentication on an IceServer
.
Implementations§
Source§impl IcePassword
impl IcePassword
Sourcepub fn expose_str(&self) -> &str
pub fn expose_str(&self) -> &str
Provides access to the underlying secret str
.
Sourcepub fn random() -> Self
pub fn random() -> Self
Generates a new random IcePassword
.
Trait Implementations§
Source§impl Clone for IcePassword
impl Clone for IcePassword
Source§fn clone(&self) -> IcePassword
fn clone(&self) -> IcePassword
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 IcePassword
impl Debug for IcePassword
Source§impl<'de> Deserialize<'de> for IcePassword
impl<'de> Deserialize<'de> for IcePassword
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<IcePassword> for SecretString
impl From<IcePassword> for SecretString
Source§fn from(value: IcePassword) -> Self
fn from(value: IcePassword) -> Self
Converts to this type from the input type.
Source§impl From<SecretBox<str>> for IcePassword
impl From<SecretBox<str>> for IcePassword
Source§fn from(value: SecretString) -> Self
fn from(value: SecretString) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IcePassword
impl PartialEq for IcePassword
Source§impl Serialize for IcePassword
impl Serialize for IcePassword
impl Eq for IcePassword
Auto Trait Implementations§
impl Freeze for IcePassword
impl RefUnwindSafe for IcePassword
impl Send for IcePassword
impl Sync for IcePassword
impl Unpin for IcePassword
impl UnwindSafe for IcePassword
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