#[repr(C)]pub struct RawStream {
pub read_fn: Option<unsafe extern "C" fn(*mut c_void, *mut c_void, usize) -> usize>,
pub skip_fn: Option<unsafe extern "C" fn(*mut c_void, usize) -> bool>,
pub size_fn: Option<unsafe extern "C" fn(*mut c_void) -> u64>,
pub close_fn: Option<unsafe extern "C" fn(*mut c_void)>,
pub user: *mut c_void,
}Fields§
§read_fn: Option<unsafe extern "C" fn(*mut c_void, *mut c_void, usize) -> usize>§skip_fn: Option<unsafe extern "C" fn(*mut c_void, usize) -> bool>§size_fn: Option<unsafe extern "C" fn(*mut c_void) -> u64>§close_fn: Option<unsafe extern "C" fn(*mut c_void)>§user: *mut c_voidTrait Implementations§
Auto Trait Implementations§
impl !Send for RawStream
impl !Sync for RawStream
impl Freeze for RawStream
impl RefUnwindSafe for RawStream
impl Unpin for RawStream
impl UnsafeUnpin for RawStream
impl UnwindSafe for RawStream
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