#[repr(C)]pub struct cpxiodevice {
pub cpxiodev_eof: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>,
pub cpxiodev_error: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>,
pub cpxiodev_rewind: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>,
pub cpxiodev_flush: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>,
pub cpxiodev_close: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>,
pub cpxiodev_putc: Option<unsafe extern "C" fn(c: c_int, dev: *mut cpxiodevice) -> c_int>,
pub cpxiodev_puts: Option<unsafe extern "C" fn(s: *const c_char, dev: *mut cpxiodevice) -> c_int>,
pub cpxiodev_read: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize, dev: *mut cpxiodevice) -> usize>,
pub cpxiodev_write: Option<unsafe extern "C" fn(ptr: *const c_void, size: usize, dev: *mut cpxiodevice) -> usize>,
}Fields§
§cpxiodev_eof: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>§cpxiodev_error: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>§cpxiodev_rewind: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>§cpxiodev_flush: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>§cpxiodev_close: Option<unsafe extern "C" fn(dev: *mut cpxiodevice) -> c_int>§cpxiodev_putc: Option<unsafe extern "C" fn(c: c_int, dev: *mut cpxiodevice) -> c_int>§cpxiodev_puts: Option<unsafe extern "C" fn(s: *const c_char, dev: *mut cpxiodevice) -> c_int>§cpxiodev_read: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize, dev: *mut cpxiodevice) -> usize>§cpxiodev_write: Option<unsafe extern "C" fn(ptr: *const c_void, size: usize, dev: *mut cpxiodevice) -> usize>Trait Implementations§
Source§impl Clone for cpxiodevice
impl Clone for cpxiodevice
Source§fn clone(&self) -> cpxiodevice
fn clone(&self) -> cpxiodevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for cpxiodevice
impl Debug for cpxiodevice
impl Copy for cpxiodevice
Auto Trait Implementations§
impl Freeze for cpxiodevice
impl RefUnwindSafe for cpxiodevice
impl Send for cpxiodevice
impl Sync for cpxiodevice
impl Unpin for cpxiodevice
impl UnwindSafe for cpxiodevice
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