#[repr(C)]pub struct io_source_t {
pub name: *const c_char,
pub read: Option<unsafe extern "C" fn(io: *mut io_t, buffer: *mut c_void, len: i64) -> i64>,
pub peek: Option<unsafe extern "C" fn(io: *mut io_t, buffer: *mut c_void, len: i64) -> i64>,
pub tell: Option<unsafe extern "C" fn(io: *mut io_t) -> i64>,
pub seek: Option<unsafe extern "C" fn(io: *mut io_t, offset: i64, whence: c_int) -> i64>,
pub close: Option<unsafe extern "C" fn(io: *mut io_t)>,
}Fields§
§name: *const c_char§read: Option<unsafe extern "C" fn(io: *mut io_t, buffer: *mut c_void, len: i64) -> i64>§peek: Option<unsafe extern "C" fn(io: *mut io_t, buffer: *mut c_void, len: i64) -> i64>§tell: Option<unsafe extern "C" fn(io: *mut io_t) -> i64>§seek: Option<unsafe extern "C" fn(io: *mut io_t, offset: i64, whence: c_int) -> i64>§close: Option<unsafe extern "C" fn(io: *mut io_t)>Trait Implementations§
Source§impl Clone for io_source_t
impl Clone for io_source_t
Source§fn clone(&self) -> io_source_t
fn clone(&self) -> io_source_t
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 io_source_t
impl Debug for io_source_t
impl Copy for io_source_t
Auto Trait Implementations§
impl Freeze for io_source_t
impl RefUnwindSafe for io_source_t
impl !Send for io_source_t
impl !Sync for io_source_t
impl Unpin for io_source_t
impl UnwindSafe for io_source_t
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