The Rust Programming Language Forum
Is there a good way to roll back partial io (or resource allocation) operations?
ogeon
April 23, 2015, 12:55pm
7
That's
try!
without the error conversion, FYI.
1 Like
Thoughts on resource management and program structure
show post in topic
Related Topics
Topic
Replies
Views
Activity
Thoughts on resource management and program structure
1
865
January 12, 2023
Rollback pattern
help
2
380
November 29, 2022
What's the recommended way of testing I/O functions?
help
4
3536
January 12, 2023
How to handle the error maybe caused by File.write_all?
help
3
289
March 16, 2023
What is idiomatic error handling with cleanup of external state
help
3
268
February 6, 2024