Enum ThreadSafety
pub enum ThreadSafety {
SingleThreaded,
MultiThreaded,
LockFree,
}Expand description
Thread safety levels
Variants§
SingleThreaded
Single-threaded only
MultiThreaded
Multi-threaded with locks
LockFree
Lock-free multi-threaded
Trait Implementations§
§impl Clone for ThreadSafety
impl Clone for ThreadSafety
§fn clone(&self) -> ThreadSafety
fn clone(&self) -> ThreadSafety
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 more§impl Debug for ThreadSafety
impl Debug for ThreadSafety
§impl Default for ThreadSafety
impl Default for ThreadSafety
§fn default() -> ThreadSafety
fn default() -> ThreadSafety
Returns the “default value” for a type. Read more
§impl PartialEq for ThreadSafety
impl PartialEq for ThreadSafety
impl StructuralPartialEq for ThreadSafety
Auto Trait Implementations§
impl Freeze for ThreadSafety
impl RefUnwindSafe for ThreadSafety
impl Send for ThreadSafety
impl Sync for ThreadSafety
impl Unpin for ThreadSafety
impl UnwindSafe for ThreadSafety
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