pub trait ImplStreamReader:
Clone
+ Sized
+ Rc {
// Required methods
fn read(&self, ptr: *mut u8, size: usize, n: usize) -> usize;
fn seek(&self, offset: i64, whence: c_int) -> c_int;
fn tell(&self) -> i64;
fn eof(&self) -> c_int;
fn may_block(&self) -> c_int;
fn get_raw(&self) -> *mut _cef_stream_reader_t;
}Required Methods§
Sourcefn read(&self, ptr: *mut u8, size: usize, n: usize) -> usize
fn read(&self, ptr: *mut u8, size: usize, n: usize) -> usize
See _cef_stream_reader_t::read for more documentation.
Sourcefn seek(&self, offset: i64, whence: c_int) -> c_int
fn seek(&self, offset: i64, whence: c_int) -> c_int
See _cef_stream_reader_t::seek for more documentation.
Sourcefn tell(&self) -> i64
fn tell(&self) -> i64
See _cef_stream_reader_t::tell for more documentation.
Sourcefn eof(&self) -> c_int
fn eof(&self) -> c_int
See _cef_stream_reader_t::eof for more documentation.
Sourcefn may_block(&self) -> c_int
fn may_block(&self) -> c_int
See _cef_stream_reader_t::may_block for more documentation.
fn get_raw(&self) -> *mut _cef_stream_reader_t
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.