mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Update docs.
This commit is contained in:
parent
21a27fd9cc
commit
6ec2b8952c
4 changed files with 38 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue