Random refreshers (#35)

random refreshers
This commit is contained in:
Hubert
2024-04-14 13:23:22 +02:00
committed by GitHub
parent fab61e686b
commit 7840b338f8
4 changed files with 5 additions and 3 deletions
+1
View File
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"wakey",
"wakey-wake"
+1 -1
View File
@@ -16,7 +16,7 @@ fn main() -> wakey::Result<()> {
.expect("Invalid MAC address format. Please use one of the separators: [:, -, /]");
let wol = wakey::WolPacket::from_string(&mac_adress, sep)?;
if wol.send_magic().is_ok() {
println!("Sent the magic packet.");
println!("Sent the magic packet to {mac_adress}");
} else {
println!("Failed to send the magic packet.");
}
+2 -2
View File
@@ -13,5 +13,5 @@ keywords = ["wol", "wake-on-lan"]
categories = ["network-programming"]
[dependencies]
hex = "~0.4"
arrayvec = "0.7.2"
hex = "0.4"
arrayvec = "0.7"
+1
View File
@@ -120,6 +120,7 @@ impl WolPacket {
}
/// Returns the underlying WoL packet bytes
#[must_use]
pub fn into_inner(self) -> Packet {
self.packet
}