Update docs.

This commit is contained in:
CosminPerRam 2023-01-17 01:21:34 +02:00
parent 21a27fd9cc
commit 6ec2b8952c
4 changed files with 38 additions and 14 deletions

View file

@ -10,7 +10,7 @@ pub struct TimeoutSettings {
}
impl TimeoutSettings {
/// Construct new settings, passing None will block indefinitely. Passing zero Duration throws GDError::[InvalidInput](GDError::InvalidInput).
/// Construct new settings, passing None will block indefinitely. Passing zero Duration throws GDError::[InvalidInput](InvalidInput).
pub fn new(read: Option<Duration>, write: Option<Duration>) -> GDResult<Self> {
if let Some(read_duration) = read {
if read_duration == Duration::new(0, 0) {