pub struct Constant;Expand description
A struct for constants.
Implementations§
Source§impl Constant
impl Constant
pub const AEAD: &'static Algorithm
pub const AGREEMENT: &'static Algorithm
pub const BASE64_ENGINE: GeneralPurpose = BASE64_URL_SAFE_NO_PAD
pub const BUFFER_SIZE: usize = 8_192usize
pub const CHALLENGE_SIZE: usize = 32usize
pub const DELIMITER: &[u8] = b"\xAA\xAB\xAC\xAD\xAE\xAF\xBA\xBB"
pub const DELIMITER_SIZE: usize = 8usize
pub const ENCRYPTION_OVERHEAD: usize = 36usize
pub const IDENTITY_PRIVATE_KEY_LENGTH: usize = 111usize
pub const IDENTITY_PUBLIC_KEY_LENGTH: usize = 43usize
pub const KDF: Algorithm = HKDF_SHA256
pub const NULL_PEER_PUBLIC_KEY: ExchangePublicKey
pub const PEER_PUBLIC_KEY_SIZE: usize = 32usize
pub const SHARED_SECRET_NONCE_SIZE: usize = 12usize
pub const SHARED_SECRET_SIZE: usize = 32usize
pub const SHARED_SECRET_TAG_SIZE: usize = 16usize
pub const SIGNATURE: &'static EdDSAParameters
pub const SIGNATURE_SIZE: usize = 64usize
pub const UDP_TIMEOUT: Duration
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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