pub trait Finalizewhere
Self: Stateful,{
// Required method
fn finalize(self) -> Result<(), <Self as Stateful>::Error>;
}Expand description
Attempts to perform an operation after which the object will not be used anymore. Taking the object by value guarantees it won’t be used anymore.