pub struct ThreadSafe(pub PhantomData<&'static ()>, pub Infallible);Expand description
ThreadSafety marker for Send + Sync.
Tuple Fields§
§0: PhantomData<&'static ()>This field here technically doesn’t matter, but I went with something to match ThreadBound.
1: InfallibleTrait Implementations§
Source§impl Clone for ThreadSafe
impl Clone for ThreadSafe
Source§fn clone(&self) -> ThreadSafe
fn clone(&self) -> ThreadSafe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThreadSafe
Source§impl Debug for ThreadSafe
impl Debug for ThreadSafe
impl Eq for ThreadSafe
Source§impl From<ThreadSafe> for ThreadBound
impl From<ThreadSafe> for ThreadBound
Source§fn from(_: ThreadSafe) -> Self
fn from(_: ThreadSafe) -> Self
Unreachable. Available as compatibility marker when handling generic ThreadSafety directly.
Source§impl Hash for ThreadSafe
impl Hash for ThreadSafe
Source§impl Ord for ThreadSafe
impl Ord for ThreadSafe
Source§fn cmp(&self, other: &ThreadSafe) -> Ordering
fn cmp(&self, other: &ThreadSafe) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThreadSafe
impl PartialEq for ThreadSafe
Source§impl PartialOrd for ThreadSafe
impl PartialOrd for ThreadSafe
impl StructuralPartialEq for ThreadSafe
impl ThreadSafety for ThreadSafe
Auto Trait Implementations§
impl Freeze for ThreadSafe
impl RefUnwindSafe for ThreadSafe
impl Send for ThreadSafe
impl Sync for ThreadSafe
impl Unpin for ThreadSafe
impl UnsafeUnpin for ThreadSafe
impl UnwindSafe for ThreadSafe
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