Struct rusteron_media_driver::Addrinfo
source · pub struct Addrinfo { /* private fields */ }
Implementations§
source§impl Addrinfo
impl Addrinfo
pub fn new( ai_flags: c_int, ai_family: c_int, ai_socktype: c_int, ai_protocol: c_int, ai_addrlen: socklen_t, ai_addr: &Sockaddr, ai_canonname: *mut c_char, ai_next: &Addrinfo, ) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn ai_flags(&self) -> c_int
pub fn ai_family(&self) -> c_int
pub fn ai_socktype(&self) -> c_int
pub fn ai_protocol(&self) -> c_int
pub fn ai_addrlen(&self) -> socklen_t
pub fn ai_addr(&self) -> Sockaddr
pub fn ai_canonname(&self) -> *mut c_char
pub fn ai_next(&self) -> Addrinfo
pub fn get_inner(&self) -> *mut addrinfo
Trait Implementations§
source§impl Default for Addrinfo
impl Default for Addrinfo
This will create an instance where the struct is zeroed, use with care
Auto Trait Implementations§
impl Freeze for Addrinfo
impl !RefUnwindSafe for Addrinfo
impl !Send for Addrinfo
impl !Sync for Addrinfo
impl Unpin for Addrinfo
impl !UnwindSafe for Addrinfo
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
)