Skip to content
Discussion options

You must be logged in to vote

You can do something along these lines:

let std_file = Handle::current().block_on(tokio_file.into_std());
std_file.write(...);
let tokio_file = File::from_std(std_file);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@linrongbin16
Comment options

@Darksonn
Comment options

@linrongbin16
Comment options

Answer selected by linrongbin16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants