Self import with use?

use tokio::stream::{self, StreamExt};

What does self do here?

1 Like

That’s equivalent to

use tokio::stream;
use tokio::stream::StreamExt;

It allows you to use stream in the current module.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.