#[repr(C)]pub struct spawn_result {
pub id: thread_id,
pub err: twz_error,
}
Expand description
Spawn result.
Fields§
§id: thread_id
Thread id, if err is set to Success.
err: twz_error
Trait Implementations§
Source§impl Clone for spawn_result
impl Clone for spawn_result
Source§fn clone(&self) -> spawn_result
fn clone(&self) -> spawn_result
Returns a copy 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 spawn_result
impl Debug for spawn_result
Source§impl From<spawn_result> for Result<ThreadId>
impl From<spawn_result> for Result<ThreadId>
Source§fn from(value: spawn_result) -> Self
fn from(value: spawn_result) -> Self
Converts to this type from the input type.
impl Copy for spawn_result
Auto Trait Implementations§
impl Freeze for spawn_result
impl RefUnwindSafe for spawn_result
impl Send for spawn_result
impl Sync for spawn_result
impl Unpin for spawn_result
impl UnwindSafe for spawn_result
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