@@ -8,37 +8,37 @@ pub enum Error {
88 /// Loop terminated by pcap_breakloop (PCAP_ERROR_BREAK).
99 Break ,
1010 /// The capture needs to be activated (PCAP_ERROR_NOT_ACTIVATED).
11- NotActivated ( String ) ,
11+ NotActivated ( Box < str > ) ,
1212 /// Capture handle already activated (PCAP_ERROR_ACTIVATED).
13- AlreadyActivated ( String ) ,
13+ AlreadyActivated ( Box < str > ) ,
1414 /// The capture source specified when the handle was created doesn't exist
1515 /// (PCAP_ERROR_NO_SUCH_DEVICE).
16- NoSuchDevice ( String ) ,
16+ NoSuchDevice ( Box < str > ) ,
1717 /// Monitor mode was specified but the capture source doesn't support
1818 /// monitor mode (PCAP_ERROR_RFMON_NOTSUP).
19- MonitorModeNotSupported ( String ) ,
19+ MonitorModeNotSupported ( Box < str > ) ,
2020 /// The operation is supported only in monitor mode (PCAP_ERROR_NOT_RFMON).
2121 OnlySupportedInMonitorMode ,
2222 /// The process doesn't have permission to open the capture source
2323 /// (PCAP_ERROR_PERM_DENIED).
24- PermissionDenied ( String ) ,
24+ PermissionDenied ( Box < str > ) ,
2525 /// The capture source device is not up (PCAP_ERROR_IFACE_NOT_UP).
26- InterfaceNotUp ( String ) ,
26+ InterfaceNotUp ( Box < str > ) ,
2727 /// This device doesn't support setting the time stamp type
2828 /// (PCAP_ERROR_CANTSET_TSTAMP_TYPE).
29- TimestampTypeNotSupported ( String ) ,
29+ TimestampTypeNotSupported ( Box < str > ) ,
3030 /// The process has permission to open the capture source but doesn't have
3131 /// permission to put it into promiscuous mode
3232 /// (PCAP_ERROR_PROMISC_PERM_DENIED).
33- PromiscuousPermissionDenied ( String ) ,
33+ PromiscuousPermissionDenied ( Box < str > ) ,
3434 /// The requested time stamp precision is not supported
3535 /// (PCAP_ERROR_TSTAMP_PRECISION_NOTSUP).
3636 TimestampPrecisionNotSupported ,
3737
3838 /// Error from `libpcap`
39- PcapError ( String ) ,
39+ PcapError ( Box < str > ) ,
4040 /// Warning from `libpcap`
41- PcapWarning ( String ) ,
41+ PcapWarning ( Box < str > ) ,
4242 /// Unknown error code from `libpcap`.
4343 PcapErrorCode ( i32 ) ,
4444
0 commit comments