pub trait TryClone: Sized { type Error: Error; fn try_clone(&self) -> Result<Self, Self::Error>; }
Types that can be cloned where success is not guaranteed can implement this trait.
The type of error that can be returned when an attempted clone operation fails.
Attempt to clone this instance.
Can fail if the underlying instance cannot be cloned (e.g. the OS could be out of file descriptors, or some low-level OS-specific error could be produced).