docs: document initialize_manual default gateway

Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
This commit is contained in:
Lachezar Lechev 2023-07-12 17:40:47 +03:00
commit 6ff773d5ed
No known key found for this signature in database
GPG key ID: B2D641D6A2C8E742

View file

@ -58,6 +58,10 @@ impl<SpiBus: Bus> UninitializedDevice<SpiBus> {
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(
self,
mac: MacAddress,