pub trait SockaddrLikePriv {
// Provided method
fn as_mut_ptr(&mut self) -> *mut sockaddr { ... }
}
Provided Methods§
Sourcefn as_mut_ptr(&mut self) -> *mut sockaddr
fn as_mut_ptr(&mut self) -> *mut sockaddr
Returns a mutable raw pointer to the inner structure.
§Safety
This method is technically safe, but modifying the inner structure’s
family
or len
fields may result in violating Nix’s invariants.
It is best to use this method only with foreign functions that do
not change the sockaddr type.