Struct simpdiscoverylib::Beacon[][src]

pub struct Beacon {
    pub service_ip: String,
    pub service_port: u16,
    pub service_name: Vec<u8>,
}
Expand description

Beacon contains information about the beacon that was received by a BeaconListener

Fields

service_ip: String

The IP address and port the beacon was sent from

service_port: u16

The port the service is running on

service_name: Vec<u8>

The name of the service sending the beacon

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.