Struct GCEthernetInterface
#[repr(transparent)]pub struct GCEthernetInterface(sGCEthernetInterface);Expand description
Zero-cost abstraction over Ethernet interface configuration from C ABI.
This struct wraps the C ABI struct and provides safe Rust accessors.
Tuple Fields§
§0: sGCEthernetInterfaceImplementations§
§impl GCEthernetInterface
impl GCEthernetInterface
Trait Implementations§
§impl Debug for GCEthernetInterface
impl Debug for GCEthernetInterface
§impl GCAbiConversion for GCEthernetInterface
impl GCAbiConversion for GCEthernetInterface
type CType = sGCEthernetInterface
§fn from_c_ref(c_type: &Self::CType) -> &Self
fn from_c_ref(c_type: &Self::CType) -> &Self
Get a reference to the converted type
§unsafe fn from_c_ptr(ptr: *const Self::CType) -> &'static Self
unsafe fn from_c_ptr(ptr: *const Self::CType) -> &'static Self
Get a mutable reference to the C type Read more
§unsafe fn as_mut_ptr(&mut self) -> *mut Self::CType
unsafe fn as_mut_ptr(&mut self) -> *mut Self::CType
Get a mutable reference to the C type Read more
Auto Trait Implementations§
impl Freeze for GCEthernetInterface
impl RefUnwindSafe for GCEthernetInterface
impl Send for GCEthernetInterface
impl Sync for GCEthernetInterface
impl Unpin for GCEthernetInterface
impl UnsafeUnpin for GCEthernetInterface
impl UnwindSafe for GCEthernetInterface
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