burn_drive_info

Struct burn_drive_info 

Source
#[repr(C)]
pub struct burn_drive_info { pub vendor: [c_char; 9], pub product: [c_char; 17], pub revision: [c_char; 5], pub location: [c_char; 17], pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub buffer_size: c_int, pub tao_block_types: c_int, pub sao_block_types: c_int, pub raw_block_types: c_int, pub packet_block_types: c_int, pub drive: *mut burn_drive, }
Expand description

Information on a drive in the system

Fields§

§vendor: [c_char; 9]

Name of the vendor of the drive

§product: [c_char; 17]

Name of the drive

§revision: [c_char; 5]

Revision of the drive

§location: [c_char; 17]

Invalid: Was: "Location of the drive in the filesystem." / /* This string has no meaning any more. Once it stored the drive device file address. Now always use function burn_drive_d_get_adr() to inquire a device file address. ^^^^^ ALWAYS ^^^^^^^

§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§buffer_size: c_int

DEPRECATED: The size of the drive’s buffer (in kilobytes)

§tao_block_types: c_int

The supported block types in tao mode. They should be tested with the desired block type. See also burn_block_types.

§sao_block_types: c_int

The supported block types in sao mode. They should be tested with the desired block type. See also burn_block_types.

§raw_block_types: c_int

The supported block types in raw mode. They should be tested with the desired block type. See also burn_block_types.

§packet_block_types: c_int

The supported block types in packet mode. They should be tested with the desired block type. See also burn_block_types.

§drive: *mut burn_drive

The value by which this drive can be indexed when using functions in the library. This is the value to pass to all libbburn functions that operate on a drive.

Implementations§

Source§

impl burn_drive_info

Source

pub fn read_dvdram(&self) -> c_uint

Source

pub fn set_read_dvdram(&mut self, val: c_uint)

Source

pub unsafe fn read_dvdram_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_read_dvdram_raw(this: *mut Self, val: c_uint)

Source

pub fn read_dvdr(&self) -> c_uint

Source

pub fn set_read_dvdr(&mut self, val: c_uint)

Source

pub unsafe fn read_dvdr_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_read_dvdr_raw(this: *mut Self, val: c_uint)

Source

pub fn read_dvdrom(&self) -> c_uint

Source

pub fn set_read_dvdrom(&mut self, val: c_uint)

Source

pub unsafe fn read_dvdrom_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_read_dvdrom_raw(this: *mut Self, val: c_uint)

Source

pub fn read_cdr(&self) -> c_uint

Source

pub fn set_read_cdr(&mut self, val: c_uint)

Source

pub unsafe fn read_cdr_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_read_cdr_raw(this: *mut Self, val: c_uint)

Source

pub fn read_cdrw(&self) -> c_uint

Source

pub fn set_read_cdrw(&mut self, val: c_uint)

Source

pub unsafe fn read_cdrw_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_read_cdrw_raw(this: *mut Self, val: c_uint)

Source

pub fn write_dvdram(&self) -> c_uint

Source

pub fn set_write_dvdram(&mut self, val: c_uint)

Source

pub unsafe fn write_dvdram_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_write_dvdram_raw(this: *mut Self, val: c_uint)

Source

pub fn write_dvdr(&self) -> c_uint

Source

pub fn set_write_dvdr(&mut self, val: c_uint)

Source

pub unsafe fn write_dvdr_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_write_dvdr_raw(this: *mut Self, val: c_uint)

Source

pub fn write_cdr(&self) -> c_uint

Source

pub fn set_write_cdr(&mut self, val: c_uint)

Source

pub unsafe fn write_cdr_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_write_cdr_raw(this: *mut Self, val: c_uint)

Source

pub fn write_cdrw(&self) -> c_uint

Source

pub fn set_write_cdrw(&mut self, val: c_uint)

Source

pub unsafe fn write_cdrw_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_write_cdrw_raw(this: *mut Self, val: c_uint)

Source

pub fn write_simulate(&self) -> c_uint

Source

pub fn set_write_simulate(&mut self, val: c_uint)

Source

pub unsafe fn write_simulate_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_write_simulate_raw(this: *mut Self, val: c_uint)

Source

pub fn c2_errors(&self) -> c_uint

Source

pub fn set_c2_errors(&mut self, val: c_uint)

Source

pub unsafe fn c2_errors_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_c2_errors_raw(this: *mut Self, val: c_uint)

Source

pub fn new_bitfield_1( read_dvdram: c_uint, read_dvdr: c_uint, read_dvdrom: c_uint, read_cdr: c_uint, read_cdrw: c_uint, write_dvdram: c_uint, write_dvdr: c_uint, write_cdr: c_uint, write_cdrw: c_uint, write_simulate: c_uint, c2_errors: c_uint, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

Source§

impl Clone for burn_drive_info

Source§

fn clone(&self) -> burn_drive_info

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for burn_drive_info

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for burn_drive_info

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.