Struct r_core::r_io_plugin_t[][src]

#[repr(C)]
pub struct r_io_plugin_t {
Show 28 fields pub name: *const c_char, pub desc: *const c_char, pub version: *const c_char, pub author: *const c_char, pub license: *const c_char, pub widget: *mut c_void, pub uris: *const c_char, pub listener: Option<unsafe extern "C" fn(io: *mut RIODesc) -> c_int>, pub init: Option<unsafe extern "C" fn() -> c_int>, pub undo: RIOUndo, pub isdbg: bool, pub system: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, arg1: *const c_char) -> *mut c_char>, pub open: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RIODesc>, pub open_many: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RList>, pub read: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *mut c_uchar, count: c_int) -> c_int>, pub seek: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, offset: c_ulonglong, whence: c_int) -> c_ulonglong>, pub write: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *const c_uchar, count: c_int) -> c_int>, pub close: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>, pub is_blockdevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>, pub is_chardevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>, pub getpid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>, pub gettid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>, pub getbase: Option<unsafe extern "C" fn(desc: *mut RIODesc, base: *mut c_ulonglong) -> bool>, pub resize: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> bool>, pub extend: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> c_int>, pub accept: Option<unsafe extern "C" fn(io: *mut RIO, desc: *mut RIODesc, fd: c_int) -> bool>, pub create: Option<unsafe extern "C" fn(io: *mut RIO, file: *const c_char, mode: c_int, type_: c_int) -> c_int>, pub check: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, many: bool) -> bool>,
}

Fields

name: *const c_chardesc: *const c_charversion: *const c_charauthor: *const c_charlicense: *const c_charwidget: *mut c_voiduris: *const c_charlistener: Option<unsafe extern "C" fn(io: *mut RIODesc) -> c_int>init: Option<unsafe extern "C" fn() -> c_int>undo: RIOUndoisdbg: boolsystem: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, arg1: *const c_char) -> *mut c_char>open: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RIODesc>open_many: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RList>read: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *mut c_uchar, count: c_int) -> c_int>seek: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, offset: c_ulonglong, whence: c_int) -> c_ulonglong>write: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *const c_uchar, count: c_int) -> c_int>close: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>is_blockdevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>is_chardevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>getpid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>gettid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>getbase: Option<unsafe extern "C" fn(desc: *mut RIODesc, base: *mut c_ulonglong) -> bool>resize: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> bool>extend: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> c_int>accept: Option<unsafe extern "C" fn(io: *mut RIO, desc: *mut RIODesc, fd: c_int) -> bool>create: Option<unsafe extern "C" fn(io: *mut RIO, file: *const c_char, mode: c_int, type_: c_int) -> c_int>check: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, many: bool) -> bool>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.