Struct rusteron_media_driver::Sockaddr
source · pub struct Sockaddr { /* private fields */ }
Implementations§
source§impl Sockaddr
impl Sockaddr
pub fn new( sa_family: sa_family_t, sa_data: [c_char; 14], ) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn sa_family(&self) -> sa_family_t
pub fn sa_data(&self) -> [c_char; 14]
pub fn get_inner(&self) -> *mut sockaddr
Trait Implementations§
source§impl Default for Sockaddr
impl Default for Sockaddr
This will create an instance where the struct is zeroed, use with care
Auto Trait Implementations§
impl Freeze for Sockaddr
impl !RefUnwindSafe for Sockaddr
impl !Send for Sockaddr
impl !Sync for Sockaddr
impl Unpin for Sockaddr
impl !UnwindSafe for Sockaddr
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
)