pub struct ByteReadHandler { /* private fields */ }Implementations§
Source§impl ByteReadHandler
impl ByteReadHandler
pub fn new(stream: Arc<Mutex<ByteStream>>) -> ReadHandler
Trait Implementations§
Source§impl Clone for ByteReadHandler
impl Clone for ByteReadHandler
Source§impl ImplReadHandler for ByteReadHandler
impl ImplReadHandler for ByteReadHandler
Source§fn read(&self, ptr: *mut u8, size: usize, n: usize) -> usize
fn read(&self, ptr: *mut u8, size: usize, n: usize) -> usize
See
_cef_read_handler_t::read for more documentation.Source§fn seek(&self, offset: i64, whence: c_int) -> c_int
fn seek(&self, offset: i64, whence: c_int) -> c_int
See
_cef_read_handler_t::seek for more documentation.Source§fn tell(&self) -> i64
fn tell(&self) -> i64
See
_cef_read_handler_t::tell for more documentation.Source§fn eof(&self) -> i32
fn eof(&self) -> i32
See
_cef_read_handler_t::eof for more documentation.Source§fn may_block(&self) -> i32
fn may_block(&self) -> i32
See
_cef_read_handler_t::may_block for more documentation.fn get_raw(&self) -> *mut _cef_read_handler_t
fn init_methods(object: &mut _cef_read_handler_t)
Source§impl Rc for ByteReadHandler
impl Rc for ByteReadHandler
Source§fn as_base(&self) -> &cef_base_ref_counted_t
fn as_base(&self) -> &cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Source§impl WrapReadHandler for ByteReadHandler
impl WrapReadHandler for ByteReadHandler
Auto Trait Implementations§
impl !Send for ByteReadHandler
impl !Sync for ByteReadHandler
impl Forget for ByteReadHandler
impl Freeze for ByteReadHandler
impl Move for ByteReadHandler
impl RefUnwindSafe for ByteReadHandler
impl Unpin for ByteReadHandler
impl UnsafeUnpin for ByteReadHandler
impl UnwindSafe for ByteReadHandler
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