pub trait MaybeParsedNetlinkMessage {
type Message: MessageWithPermission;
// Required method
fn try_into_parsed(
self,
) -> Result<NetlinkMessage<Self::Message>, ParseError>;
}Expand description
A trait abstracting netlink messages that may already be parsed or still need to go through parsing.
Required Associated Types§
Sourcetype Message: MessageWithPermission
type Message: MessageWithPermission
The inner message type potentially contained by this message.
Required Methods§
Sourcefn try_into_parsed(self) -> Result<NetlinkMessage<Self::Message>, ParseError>
fn try_into_parsed(self) -> Result<NetlinkMessage<Self::Message>, ParseError>
Parses the message, returning an owned NetlinkMessage on success.