Trait AsRaw

Source
pub trait AsRaw<T: 'static> {
    // Required methods
    fn as_raw(&self) -> *mut T;
    fn into_raw(self) -> *mut T;
}
Expand description

Receive the underlying raw pointer

Required Methods§

Source

fn as_raw(&self) -> *mut T

Get a reference of the underlying struct.

The reference count will not be increased.

Source

fn into_raw(self) -> *mut T

Convert the object into the underlying pointer.

You are responsible for freeing the object.

Implementors§

Source§

impl AsRaw<udev> for Udev

Source§

impl AsRaw<udev_monitor> for Socket