Enum nannou_laser::stream::raw::StreamErrorAction [−][src]
pub enum StreamErrorAction { ReattemptConnect, RedetectDac { timeout: Option<Duration>, }, CloseThread, }
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
impl Clone for StreamErrorAction
[src]
fn clone(&self) -> StreamErrorAction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StreamErrorAction
[src]
impl Default for StreamErrorAction
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,