Struct odbc_api::TooLargeBufferSize
source · [−]Expand description
Error indicating a failed allocation for a column buffer
Fields
num_elements: usize
Number of elements supposed to be in the buffer.
element_size: usize
Element size in the buffer in bytes.
Implementations
sourceimpl TooLargeBufferSize
impl TooLargeBufferSize
sourcepub fn add_context(self, buffer_index: u16) -> Error
pub fn add_context(self, buffer_index: u16) -> Error
Map the column allocation error to an crate::Error
adding the context of which
column caused the allocation error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TooLargeBufferSize
impl Send for TooLargeBufferSize
impl Sync for TooLargeBufferSize
impl Unpin for TooLargeBufferSize
impl UnwindSafe for TooLargeBufferSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more