Skip to main content

same_content_from_readers_async

Function same_content_from_readers_async 

Source
pub async fn same_content_from_readers_async(
    a: &mut (dyn AsyncRead + Unpin),
    b: &mut (dyn AsyncRead + Unpin),
) -> Result<bool, Error>
Available on crate feature tokio only.
Expand description

Determines whether two Tokio readers have the same remaining content using the default buffer size.

Reading starts at each reader’s current position.