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
Attempts to reconnect to the specified DAC in the case that one was provided, or any DAC in
the case that None
was provided.
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
Close the TCP communication thread and return the error responsible.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StreamErrorAction
impl Send for StreamErrorAction
impl Sync for StreamErrorAction
impl Unpin for StreamErrorAction
impl UnwindSafe for StreamErrorAction
Blanket Implementations
Mutably borrows from an owned value. Read more