Enum nannou_laser::stream::raw::StreamErrorAction[][src]

pub enum StreamErrorAction {
    ReattemptConnect,
    RedetectDac {
        timeout: Option<Duration>,
    },
    CloseThread,
}
Expand description

An action to perform in response to a StreamError occurring.

Variants

ReattemptConnect

Attempts to reconnect to the specified DAC in the case that one was provided, or any DAC in the case that None was provided.

RedetectDac

Attempt to re-detect the same DAC in the case that one was specified, or any DAC in the case that None was provided.

This can be useful in the case where the DAC has dropped from the network and may have re-appeared broadcasting from a different IP address.

Fields of RedetectDac

timeout: Option<Duration>

How long to wait for a broadcast from the DAC before timing out.

CloseThread

Close the TCP communication thread and return the error responsible.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.