[][src]Struct sacn_unofficial::receive::DiscoveredSacnSource

pub struct DiscoveredSacnSource {
    pub name: String,
    pub last_updated: Instant,
    // some fields omitted
}

Represents an sACN source/sender on the network that has been discovered by this sACN receiver by receiving universe discovery packets.

Fields

name: String

The name of the source, no protocol guarantee this will be unique but if it isn't then universe discovery may not work correctly.

last_updated: Instant

The time at which the discovered source was last updated / a discovery packet was received by the source.

Implementations

impl DiscoveredSacnSource[src]

pub fn has_all_pages(&mut self) -> bool[src]

Returns true if all the pages sent by this DiscoveredSacnSource have been received.

This is based on each page containing a last-page value which indicates the number of the last page expected.

pub fn get_all_universes(&self) -> Vec<u16>[src]

Returns all the universes being send by this SacnSource as discovered through the universe discovery mechanism.

Intentionally abstracts over the underlying concept of pages as this is purely an E1.31 Universe Discovery concept and is otherwise transparent.

pub fn terminate_universe(&mut self, universe: u16)[src]

Removes the given universe from the list of universes being sent by this discovered source.

Trait Implementations

impl Clone for DiscoveredSacnSource[src]

impl Debug for DiscoveredSacnSource[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.