#[repr(C)]pub struct mco_desc {
pub func: Option<unsafe extern "C" fn(co: *mut mco_coro)>,
pub user_data: *mut c_void,
pub alloc_cb: Option<unsafe extern "C" fn(size: usize, allocator_data: *mut c_void) -> *mut c_void>,
pub dealloc_cb: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize, allocator_data: *mut c_void)>,
pub allocator_data: *mut c_void,
pub storage_size: usize,
pub coro_size: usize,
pub stack_size: usize,
}Fields§
§func: Option<unsafe extern "C" fn(co: *mut mco_coro)>§user_data: *mut c_void§alloc_cb: Option<unsafe extern "C" fn(size: usize, allocator_data: *mut c_void) -> *mut c_void>§dealloc_cb: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize, allocator_data: *mut c_void)>§allocator_data: *mut c_void§storage_size: usize§coro_size: usize§stack_size: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for mco_desc
impl RefUnwindSafe for mco_desc
impl !Send for mco_desc
impl !Sync for mco_desc
impl Unpin for mco_desc
impl UnwindSafe for mco_desc
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