1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use crate::attr::Nl80211Attr;
use neli::nlattr::AttrHandle;

/// Format and convert network information to human readable format
pub trait PrettyFormat {
    fn pretty_format(&self) -> String;
}

/// Parse netlink messages attributes returned by a nl80211 command
pub trait ParseNlAttr {
    fn parse(&mut self, handle: AttrHandle<Nl80211Attr>) -> Self;
}

/// Decode netlink payloads (Vec\<u8\>) to appropriate types
pub trait NlPayloadDecode {
    fn decode(&mut self) -> Self;
}