Trait tendermint_std_ext::TryClone[][src]

pub trait TryClone: Sized {
    type Error: Error;
    fn try_clone(&self) -> Result<Self, Self::Error>;
}
Expand description

Types that can be cloned where success is not guaranteed can implement this trait.

Associated Types

The type of error that can be returned when an attempted clone operation fails.

Required methods

Attempt to clone this instance.

Errors

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).

Implementations on Foreign Types

Implementors