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

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

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

impl Clone for StreamErrorAction[src]

impl Debug for StreamErrorAction[src]

impl Default for StreamErrorAction[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.