[][src]Enum watchman_client::pdu::SyncTimeout

pub enum SyncTimeout {
    Default,
    DisableCookie,
    Duration(Duration),
}

Variants

Default

Use the default cookie synchronization timeout

DisableCookie

Disable the use of a sync cookie. This can save ~15ms of latency, but may result in results from an outdated view of the filesystem. It is safe to use after you have performed a synchronized query or clock call, so that you can guarantee that the server is at least as current as the time that you started your processing.

Duration(Duration)

Specify a timeout for the sync cookie. You should not need to override the default value in most cases. Note that the server has millisecond level granularity for the timeout.

Trait Implementations

impl Clone for SyncTimeout[src]

impl Debug for SyncTimeout[src]

impl Default for SyncTimeout[src]

impl From<Duration> for SyncTimeout[src]

impl Into<i64> for SyncTimeout[src]

impl Serialize for SyncTimeout[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.