Skip to main content

same_content_from_files_async

Function same_content_from_files_async 

Source
pub async fn same_content_from_files_async(
    a: &mut File,
    b: &mut File,
) -> Result<bool, Error>
Available on crate feature tokio only.
Expand description

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

When the file lengths match, both files are rewound to the beginning before comparison.