Renamed Settings to Mode since it only applies to network mode byte

This commit is contained in:
Jonah Dahlquist 2019-08-09 17:21:30 -05:00 committed by Jonah Dahlquist
commit 7dd4c04fe4
2 changed files with 51 additions and 15 deletions

View file

@ -136,14 +136,14 @@ pub enum ArpResponses {
}
#[derive(Copy, Clone, PartialEq)]
pub struct Settings {
pub struct Mode {
on_wake_on_lan: OnWakeOnLan,
on_ping_request: OnPingRequest,
connection_type: ConnectionType,
arp_responses: ArpResponses
arp_responses: ArpResponses,
}
impl Default for Settings {
impl Default for Mode {
fn default() -> Self {
Self {
on_wake_on_lan: OnWakeOnLan::Ignore,