[][src]Enum autodiscover_rs::Method

pub enum Method {
    Broadcast(SocketAddr),
    Multicast(SocketAddr),
}

Method describes whether a multicast or broadcast method for sending discovery messages should be used.

Variants

Broadcast(SocketAddr)

Broadcast is an IPv4-only method of sending discovery messages; use a value such as "255.255.255.255:1337".parse() or "192.168.0.255:1337".parse() when using this method. The latter value will be specific to your network setup.

Multicast(SocketAddr)

Multicast supports both IPv6 and IPv4 for sending discovery methods; use a value such as "224.0.0.1".parse() for IPv4, or "[ff0e::1]:1337".parse() for IPv6. To be frank, IPv6 confuses me, but that address worked on my machine.

Auto Trait Implementations

impl RefUnwindSafe for Method

impl Send for Method

impl Sync for Method

impl Unpin for Method

impl UnwindSafe for Method

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, 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.