pub trait FallibleArc<T> {
    // Required method
    fn try_new(t: T) -> Result<Self, TryReserveError>
       where Self: Sized;
}
👎Deprecated since 0.3.1: ⚠️️️this function is not completely fallible, it can panic !, see issue. help wanted
Expand description

trait to implement Fallible Arc

Required Methods§

source

fn try_new(t: T) -> Result<Self, TryReserveError>where Self: Sized,

👎Deprecated since 0.3.1: ⚠️️️this function is not completely fallible, it can panic !, see issue. help wanted

try creating a new Arc, returning a Result<Box, TryReserveError> if allocation failed

Implementations on Foreign Types§

source§

impl<T> FallibleArc<T> for Arc<T>

source§

fn try_new(t: T) -> Result<Self, TryReserveError>

👎Deprecated since 0.3.1: ⚠️️️this function is not completely fallible, it can panic !, see issue. help wanted

Implementors§