pub trait ImplWriteHandler:
Clone
+ Sized
+ Rc {
// Required method
fn get_raw(&self) -> *mut _cef_write_handler_t;
// Provided methods
fn write(&self, ptr: *const u8, size: usize, n: usize) -> usize { ... }
fn seek(&self, offset: i64, whence: c_int) -> c_int { ... }
fn tell(&self) -> i64 { ... }
fn flush(&self) -> c_int { ... }
fn may_block(&self) -> c_int { ... }
fn init_methods(object: &mut _cef_write_handler_t) { ... }
}
Required Methods§
fn get_raw(&self) -> *mut _cef_write_handler_t
Provided Methods§
Sourcefn write(&self, ptr: *const u8, size: usize, n: usize) -> usize
fn write(&self, ptr: *const u8, size: usize, n: usize) -> usize
See _cef_write_handler_t::write
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_write_handler_t::seek
for more documentation.
Sourcefn tell(&self) -> i64
fn tell(&self) -> i64
See _cef_write_handler_t::tell
for more documentation.
Sourcefn flush(&self) -> c_int
fn flush(&self) -> c_int
See _cef_write_handler_t::flush
for more documentation.
Sourcefn may_block(&self) -> c_int
fn may_block(&self) -> c_int
See _cef_write_handler_t::may_block
for more documentation.
fn init_methods(object: &mut _cef_write_handler_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.