docs: document initialize_manual default gateway
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
This commit is contained in:
parent
2735e6a6ee
commit
6ff773d5ed
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ impl<SpiBus: Bus> UninitializedDevice<SpiBus> {
|
||||||
self.initialize_with_host(host, mode_options)
|
self.initialize_with_host(host, mode_options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// The gateway overrides the passed `ip` ([`Ip4Addr`]) to end with `.1`.
|
||||||
|
///
|
||||||
|
/// E.g. `let ip = "192.168.0.201".parse::<Ip4Addr>()` will become a device with a gateway `192.168.0.1`.
|
||||||
pub fn initialize_manual(
|
pub fn initialize_manual(
|
||||||
self,
|
self,
|
||||||
mac: MacAddress,
|
mac: MacAddress,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue