#[repr(transparent)]pub struct AlgAddr(_);
Available on crate feature
socket
only.Expand description
Socket address for the Linux kernel crypto API
Implementations
Trait Implementations
sourceimpl AsRef<sockaddr_alg> for AlgAddr
impl AsRef<sockaddr_alg> for AlgAddr
sourcefn as_ref(&self) -> &sockaddr_alg
fn as_ref(&self) -> &sockaddr_alg
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl SockaddrLike for AlgAddr
impl SockaddrLike for AlgAddr
sourceunsafe fn from_raw(addr: *const sockaddr, l: Option<socklen_t>) -> Option<Self> where
Self: Sized,
unsafe fn from_raw(addr: *const sockaddr, l: Option<socklen_t>) -> Option<Self> where
Self: Sized,
Unsafe constructor from a variable length source Read more
sourcefn as_ptr(&self) -> *const sockaddr
fn as_ptr(&self) -> *const sockaddr
Returns a raw pointer to the inner structure. Useful for FFI.
sourcefn family(&self) -> Option<AddressFamily>
fn family(&self) -> Option<AddressFamily>
Return the address family of this socket Read more
impl Copy for AlgAddr
impl Eq for AlgAddr
Auto Trait Implementations
impl RefUnwindSafe for AlgAddr
impl Send for AlgAddr
impl Sync for AlgAddr
impl Unpin for AlgAddr
impl UnwindSafe for AlgAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more