#[repr(C)]pub struct SDL_AsyncIOOutcome {
pub asyncio: *mut SDL_AsyncIO,
pub type_: SDL_AsyncIOTaskType,
pub result: SDL_AsyncIOResult,
pub buffer: *mut c_void,
pub offset: Uint64,
pub bytes_requested: Uint64,
pub bytes_transferred: Uint64,
pub userdata: *mut c_void,
}Expand description
Information about a completed asynchronous I/O request.
Available Since: This struct is available since SDL 3.2.0.
Fields§
§asyncio: *mut SDL_AsyncIO< what generated this task. This pointer will be invalid if it was closed!
type_: SDL_AsyncIOTaskType< What sort of task was this? Read, write, etc?
result: SDL_AsyncIOResult< the result of the work (success, failure, cancellation).
buffer: *mut c_void< buffer where data was read/written.
offset: Uint64< offset in the SDL_AsyncIO where data was read/written.
bytes_requested: Uint64< number of bytes the task was to read/write.
bytes_transferred: Uint64< actual number of bytes that were read/written.
userdata: *mut c_void< pointer provided by the app when starting the task
Trait Implementations§
Source§impl Clone for SDL_AsyncIOOutcome
impl Clone for SDL_AsyncIOOutcome
Source§fn clone(&self) -> SDL_AsyncIOOutcome
fn clone(&self) -> SDL_AsyncIOOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_AsyncIOOutcome
impl Debug for SDL_AsyncIOOutcome
Source§impl Default for SDL_AsyncIOOutcome
impl Default for SDL_AsyncIOOutcome
Source§impl Hash for SDL_AsyncIOOutcome
impl Hash for SDL_AsyncIOOutcome
impl Copy for SDL_AsyncIOOutcome
Auto Trait Implementations§
impl Freeze for SDL_AsyncIOOutcome
impl RefUnwindSafe for SDL_AsyncIOOutcome
impl !Send for SDL_AsyncIOOutcome
impl !Sync for SDL_AsyncIOOutcome
impl Unpin for SDL_AsyncIOOutcome
impl UnsafeUnpin for SDL_AsyncIOOutcome
impl UnwindSafe for SDL_AsyncIOOutcome
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