pub struct Uhppoted { /* private fields */ }

Implementations

Create a new Uhppote struct

Example:

use uhppote_rs::Uhppoted;
let mut uhppoted = UUhppoted::new(
    "0.0.0.0:0".parse().unwrap(),
    "255.255.255.255:60000".parse().unwrap(),
    None,
    5000,
    Vec::new(),
    false,
)
.unwrap()

Get all device on the network. This uses the broadcast address to find devices and returns a list of identifiers.

Trait Implementations

Creates a default instance of Uhppoted. Defaults: -bind: 0.0.0.0:0

  • broadcast: 255.255.255.255:60000
  • listen: None
  • timeout: 5000
  • controllers: vec![]
  • debug: false

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.