Struct block_sys::Block_descriptor
source · #[repr(C)]pub struct Block_descriptor {
pub header: Block_descriptor_header,
pub copy: Option<unsafe extern "C" fn(dst: *mut c_void, src: *mut c_void)>,
pub dispose: Option<unsafe extern "C" fn(src: *mut c_void)>,
}
👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadExpand description
Block descriptor that contains copy and dispose operations.
Requires BLOCK_HAS_COPY_DISPOSE
Fields§
§header: Block_descriptor_header
👎Deprecated:
§block-sys
is deprecated. Use block2::ffi
insteadcopy: Option<unsafe extern "C" fn(dst: *mut c_void, src: *mut c_void)>
👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadCopy function, generated by the compiler to help copy the block if it contains nontrivial copy operations.
dispose: Option<unsafe extern "C" fn(src: *mut c_void)>
👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadDispose function, generated by the compiler to help copy the block if it contains nontrivial destructors.
Auto Trait Implementations§
impl RefUnwindSafe for Block_descriptor
impl Send for Block_descriptor
impl Sync for Block_descriptor
impl Unpin for Block_descriptor
impl UnwindSafe for Block_descriptor
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