pub unsafe fn unwrap_or_else<F>(self, cleanup: F) -> T
    where
        F: FnOnce() -> T,
    {
        match self.0 {
            Ok(result) => result,
            Err(_) => {
                FlushErrorState();
                cleanup()
            }
        }
    }
/// Perform some operation cleanup operation after the try block if an error was thrown.
///
/// ## Safety
///
/// This function does not rethrow a caught ERROR.  You better know what you're doing when you
/// call this function.
///
/// Ignoring a caught error can leave Postgres in an undefined state and ultimately cause it
/// to crash.
Perform some operation cleanup operation after the try block if an error was thrown.
Perform some operation cleanup operation after the try block if an error was thrown .
pub unsafe fn unwrap_or_else<F>(self, cleanup: F) -> T
    where
        F: FnOnce() -> T,
    {
        match self.0 {
            Ok(result) => result,
            Err(_) => {
                FlushErrorState();
                cleanup()
            }
        }
    }
pub unsafe fn unwrap_or_else < F > ( self , cleanup : F ) -> T where F : FnOnce ( ) -> T , { match self . 0 { Ok ( result ) => result , Err ( _ ) => { FlushErrorState ( ) ; cleanup ( ) } } }
Perform some operation cleanup operation after the try block if an error was thrown.
Perform some operation cleanup operation after the try block if an error was thrown .
self
cleanup
F
self
cleanup
F
safety
This function does not rethrow a caught ERROR.  You better know what you're doing when you
call this function.

Ignoring a caught error can leave Postgres in an undefined state and ultimately cause it
to crash.
This function does not rethrow a caught ERROR . You better know what you ' re doing when you call this function . Ignoring a caught error can leave Postgres in an undefined state and ultimately cause it to crash .