pub struct VsockAddr(/* private fields */);
Implementations§
Trait Implementations§
source§impl AsRef<sockaddr_vm> for VsockAddr
impl AsRef<sockaddr_vm> for VsockAddr
source§fn as_ref(&self) -> &sockaddr_vm
fn as_ref(&self) -> &sockaddr_vm
Converts this type into a shared reference of the (usually inferred) input type.
source§impl SockaddrLike for VsockAddr
impl SockaddrLike for VsockAddr
source§unsafe fn from_raw(
addr: *const sockaddr,
len: Option<socklen_t>,
) -> Option<Self>where
Self: Sized,
unsafe fn from_raw(
addr: *const sockaddr,
len: Option<socklen_t>,
) -> Option<Self>where
Self: Sized,
Unsafe constructor from a variable length source Read more
source§fn as_ptr(&self) -> *const sockaddr
fn as_ptr(&self) -> *const sockaddr
Returns a raw pointer to the inner structure. Useful for FFI.
impl Copy for VsockAddr
impl Eq for VsockAddr
Auto Trait Implementations§
impl Freeze for VsockAddr
impl RefUnwindSafe for VsockAddr
impl Send for VsockAddr
impl Sync for VsockAddr
impl Unpin for VsockAddr
impl UnwindSafe for VsockAddr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)