Enum tinydtls_sys::dtls_peer_type
source · #[repr(u32)]
#[non_exhaustive]
pub enum dtls_peer_type {
DTLS_CLIENT,
DTLS_SERVER,
}Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DTLS_CLIENT
DTLS_SERVER
Trait Implementations
sourceimpl Clone for dtls_peer_type
impl Clone for dtls_peer_type
sourcefn clone(&self) -> dtls_peer_type
fn clone(&self) -> dtls_peer_type
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for dtls_peer_type
impl Debug for dtls_peer_type
sourceimpl Hash for dtls_peer_type
impl Hash for dtls_peer_type
sourceimpl PartialEq<dtls_peer_type> for dtls_peer_type
impl PartialEq<dtls_peer_type> for dtls_peer_type
sourcefn eq(&self, other: &dtls_peer_type) -> bool
fn eq(&self, other: &dtls_peer_type) -> bool
impl Copy for dtls_peer_type
impl Eq for dtls_peer_type
impl StructuralEq for dtls_peer_type
impl StructuralPartialEq for dtls_peer_type
Auto Trait Implementations
impl RefUnwindSafe for dtls_peer_type
impl Send for dtls_peer_type
impl Sync for dtls_peer_type
impl Unpin for dtls_peer_type
impl UnwindSafe for dtls_peer_type
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