pub struct InitInfoHandle { /* private fields */ }
Implementations§
Source§impl InitInfoHandle
impl InitInfoHandle
pub unsafe fn from_raw(handle: duckdb_init_info) -> Self
pub fn get_extra_info(&self) -> *mut c_void
pub fn get_bind_data(&self) -> *mut c_void
Sourcepub unsafe fn set_init_data(
&self,
init_data: *mut c_void,
destroy: duckdb_delete_callback_t,
)
pub unsafe fn set_init_data( &self, init_data: *mut c_void, destroy: duckdb_delete_callback_t, )
§Safety
- Takes ownership of
init_data
destroy
must outliveself
destroy()
freesinit_data
pub fn get_column_count(&self) -> u64
pub fn get_column_index(&self, column_index: u64) -> u64
pub fn set_max_threads(&self, max_threads: u64)
pub fn set_error(&self, error: &CStr)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitInfoHandle
impl RefUnwindSafe for InitInfoHandle
impl !Send for InitInfoHandle
impl !Sync for InitInfoHandle
impl Unpin for InitInfoHandle
impl UnwindSafe for InitInfoHandle
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