pub struct ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>(pub RefCell<F>)
where
F: FnMut(Error) -> Result<(), E>,
E: Into<Error>;Expand description
A fallible drop strategy which uses a function to handle errors. This is less flexible than its thread safe counterpart however there is less overhead.
Tuple Fields§
§0: RefCell<F>Implementations§
Trait Implementations§
Source§impl<F, E> Clone for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> Clone for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
Source§fn clone(&self) -> ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
fn clone(&self) -> ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
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 moreSource§impl<F, E> Debug for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> Debug for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
Source§impl<F, E> FallibleTryDropStrategy for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> FallibleTryDropStrategy for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
Source§impl<F, E> Ord for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> Ord for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
Source§fn cmp(
&self,
other: &ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>,
) -> Ordering
fn cmp( &self, other: &ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>, ) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F, E> PartialEq for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> PartialEq for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
Source§fn eq(&self, other: &ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>) -> bool
fn eq(&self, other: &ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<F, E> PartialOrd for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> PartialOrd for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> Eq for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> StructuralPartialEq for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
Auto Trait Implementations§
impl<F, E> !Freeze for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> !RefUnwindSafe for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> Send for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>where
F: Send,
impl<F, E> !Sync for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
impl<F, E> Unpin for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>where
F: Unpin,
impl<F, E> UnwindSafe for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>where
F: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.