-
Rust newbiew and need help on how to check if PutObject was successful. async fn s3_post(pdf: Vec, key: &String) -> Result<(), Box> {
} Ok and Error arms of match throwing errors Ok - expected struct Any pointers appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
The
?
is equivalent to "return if error". If you remove it your code should compile.https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator