Struct Packet
pub(in ::thread::lifecycle) struct Packet<'scope, T> { pub(in ::thread::lifecycle) scope: Option<Arc<ScopeData>>, pub(in ::thread::lifecycle) result: UnsafeCell<Option<Result<T>>>, pub(in ::thread::lifecycle) _marker: PhantomData<Option<&'scope ScopeData>> }
Fields
scope: Option<Arc<ScopeData>>result: UnsafeCell<Option<Result<T>>>_marker: PhantomData<Option<&'scope ScopeData>>
Trait Implementations
impl<'scope, T> Drop for Packet<'scope, T>
fn drop(&mut self)
impl<'scope, T: Send> Sync for Packet<'scope, T>
Auto Trait Implementations
impl<'scope, T> !Freeze for Packet<'scope, T>
impl<'scope, T> !RefUnwindSafe for Packet<'scope, T>
impl<'scope, T> !UnwindSafe for Packet<'scope, T>
impl<'scope, T> Send for Packet<'scope, T>
where
UnsafeCell<Option<Result<T, Box<dyn Any + Send>>>>: Send,
impl<'scope, T> Unpin for Packet<'scope, T>
where
UnsafeCell<Option<Result<T, Box<dyn Any + Send>>>>: Unpin,
impl<'scope, T> UnsafeUnpin for Packet<'scope, T>
where
UnsafeCell<Option<Result<T, Box<dyn Any + Send>>>>: UnsafeUnpin,
Blanket Implementations
impl<T> Any for Packet<'scope, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Packet<'scope, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Packet<'scope, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Packet<'scope, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Packet<'scope, T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Packet<'scope, T>
impl<T, U> Into<U> for Packet<'scope, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Packet<'scope, T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Packet<'scope, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>