pub unsafe auto trait Send { }
Expand description
Implementors§
impl !Send for Args
impl !Send for ArgsOs
impl Send for BorrowedHandle<'_>
Available on Windows only.
impl Send for HandleOrInvalid
Available on Windows only.
impl Send for HandleOrNull
Available on Windows only.
impl Send for OwnedHandle
Available on Windows only.
impl Send for std::string::Drain<'_>
impl Send for Waker
impl<'a> Send for IoSlice<'a>
impl<'a> Send for IoSliceMut<'a>
impl<Dyn> Send for DynMetadata<Dyn>where Dyn: ?Sized,
impl<T> !Send for *const Twhere T: ?Sized,
impl<T> !Send for *mut Twhere T: ?Sized,
impl<T> !Send for NonNull<T>where T: ?Sized,
NonNull
指针不是 Send
,因为它们引用的数据可能是别名。
impl<T> !Send for Rc<T>where T: ?Sized,
impl<T> !Send for std::rc::Weak<T>where T: ?Sized,
impl<T> Send for &Twhere T: Sync + ?Sized,
impl<T> Send for ThinBox<T>where T: Send + ?Sized,
如果 T
是 Send
,则 ThinBox<T>
是 Send
,因为数据是拥有所有权的。