INNER CODE UNIT · Rust
try_clone
build-trust/ockam · implementations/rust/ockam/ockam_core/src/lib.rs:114
fn try_clone(&self) -> Result<Self>;
}
impl<D> TryClone for D
where
D: Clone + Sync,
{
fn try_clone(&self) -> Result<Self> {
Ok(self.clone())
}
}
/// Produces Ok(false) to avoid an ambiguous reading from using the unadorned value in auth code.
#[inline(always)]
pub fn deny() -> Result<bool> {
Ok(false)
}