Skip to main content

Request

Struct Request 

Source
pub struct Request<'buf> { /* private fields */ }
Available on crate feature ethtool only.

Implementations§

Source§

impl Request<'static>

Source

pub fn new() -> Self

Source

pub fn new_from_buf(buf: Vec<u8>) -> Self

Source

pub fn into_buf(self) -> Vec<u8>

Source§

impl<'buf> Request<'buf>

Source

pub fn new_with_buf(buf: &'buf mut Vec<u8>) -> Self

Source

pub fn new_extend(buf: &'buf mut Vec<u8>) -> Self

Source

pub fn buf(&self) -> &Vec<u8>

Source

pub fn buf_mut(&mut self) -> &mut Vec<u8>

Source

pub fn set_create(self) -> Self

Set NLM_F_CREATE flag

Source

pub fn set_excl(self) -> Self

Set NLM_F_EXCL flag

Source

pub fn set_replace(self) -> Self

Set NLM_F_REPLACE flag

Source

pub fn set_change(self) -> Self

Set NLM_F_CREATE and NLM_F_REPLACE flag

Source

pub fn set_append(self) -> Self

Set NLM_F_APPEND flag

Source

pub fn set_flags(self, flags: u16) -> Self

Set self.flags |= flags

Source

pub fn unset_flags(self, flags: u16) -> Self

Set self.flags ^= self.flags & flags

Source

pub fn op_strset_get_dump(self) -> OpStrsetGetDump<'buf>

Get string set from the kernel.

Request attributes:

Reply attributes:

Source

pub fn op_strset_get_do(self) -> OpStrsetGetDo<'buf>

Get string set from the kernel.

Request attributes:

Reply attributes:

Source

pub fn op_linkinfo_get_dump(self) -> OpLinkinfoGetDump<'buf>

Source

pub fn op_linkinfo_get_do(self) -> OpLinkinfoGetDo<'buf>

Source

pub fn op_linkinfo_set_do(self) -> OpLinkinfoSetDo<'buf>

Source

pub fn op_linkmodes_get_dump(self) -> OpLinkmodesGetDump<'buf>

Source

pub fn op_linkmodes_get_do(self) -> OpLinkmodesGetDo<'buf>

Source

pub fn op_linkmodes_set_do(self) -> OpLinkmodesSetDo<'buf>

Source

pub fn op_linkstate_get_dump(self) -> OpLinkstateGetDump<'buf>

Source

pub fn op_linkstate_get_do(self) -> OpLinkstateGetDo<'buf>

Source

pub fn op_debug_get_dump(self) -> OpDebugGetDump<'buf>

Get debug message mask.

Request attributes:

Reply attributes:

Source

pub fn op_debug_get_do(self) -> OpDebugGetDo<'buf>

Get debug message mask.

Request attributes:

Reply attributes:

Source

pub fn op_debug_set_do(self) -> OpDebugSetDo<'buf>

Set debug message mask.

Request attributes:

Source

pub fn op_wol_get_dump(self) -> OpWolGetDump<'buf>

Get WOL params.

Request attributes:

Reply attributes:

Source

pub fn op_wol_get_do(self) -> OpWolGetDo<'buf>

Get WOL params.

Request attributes:

Reply attributes:

Source

pub fn op_wol_set_do(self) -> OpWolSetDo<'buf>

Set WOL params.

Request attributes:

Source

pub fn op_features_get_dump(self) -> OpFeaturesGetDump<'buf>

Get features.

Request attributes:

Reply attributes:

Source

pub fn op_features_get_do(self) -> OpFeaturesGetDo<'buf>

Get features.

Request attributes:

Reply attributes:

Source

pub fn op_features_set_do(self) -> OpFeaturesSetDo<'buf>

Source

pub fn op_privflags_get_dump(self) -> OpPrivflagsGetDump<'buf>

Get device private flags.

Request attributes:

Reply attributes:

Source

pub fn op_privflags_get_do(self) -> OpPrivflagsGetDo<'buf>

Get device private flags.

Request attributes:

Reply attributes:

Source

pub fn op_privflags_set_do(self) -> OpPrivflagsSetDo<'buf>

Set device private flags.

Request attributes:

Source

pub fn op_rings_get_dump(self) -> OpRingsGetDump<'buf>

Source

pub fn op_rings_get_do(self) -> OpRingsGetDo<'buf>

Source

pub fn op_rings_set_do(self) -> OpRingsSetDo<'buf>

Source

pub fn op_channels_get_dump(self) -> OpChannelsGetDump<'buf>

Source

pub fn op_channels_get_do(self) -> OpChannelsGetDo<'buf>

Source

pub fn op_channels_set_do(self) -> OpChannelsSetDo<'buf>

Source

pub fn op_coalesce_get_dump(self) -> OpCoalesceGetDump<'buf>

Source

pub fn op_coalesce_get_do(self) -> OpCoalesceGetDo<'buf>

Source

pub fn op_coalesce_set_do(self) -> OpCoalesceSetDo<'buf>

Source

pub fn op_pause_get_dump(self) -> OpPauseGetDump<'buf>

Get pause params.

Request attributes:

Reply attributes:

Source

pub fn op_pause_get_do(self) -> OpPauseGetDo<'buf>

Get pause params.

Request attributes:

Reply attributes:

Source

pub fn op_pause_set_do(self) -> OpPauseSetDo<'buf>

Source

pub fn op_eee_get_dump(self) -> OpEeeGetDump<'buf>

Source

pub fn op_eee_get_do(self) -> OpEeeGetDo<'buf>

Source

pub fn op_eee_set_do(self) -> OpEeeSetDo<'buf>

Source

pub fn op_tsinfo_get_dump(self) -> OpTsinfoGetDump<'buf>

Source

pub fn op_tsinfo_get_do(self) -> OpTsinfoGetDo<'buf>

Source

pub fn op_cable_test_act_do(self) -> OpCableTestActDo<'buf>

Cable test.

Request attributes:

Source

pub fn op_cable_test_tdr_act_do(self) -> OpCableTestTdrActDo<'buf>

Cable test TDR.

Request attributes:

Source

pub fn op_tunnel_info_get_dump(self) -> OpTunnelInfoGetDump<'buf>

Get tsinfo params.

Request attributes:

Reply attributes:

Source

pub fn op_tunnel_info_get_do(self) -> OpTunnelInfoGetDo<'buf>

Get tsinfo params.

Request attributes:

Reply attributes:

Source

pub fn op_fec_get_dump(self) -> OpFecGetDump<'buf>

Get FEC params.

Request attributes:

Reply attributes:

Source

pub fn op_fec_get_do(self) -> OpFecGetDo<'buf>

Get FEC params.

Request attributes:

Reply attributes:

Source

pub fn op_fec_set_do(self) -> OpFecSetDo<'buf>

Source

pub fn op_module_eeprom_get_dump(self) -> OpModuleEepromGetDump<'buf>

Source

pub fn op_module_eeprom_get_do(self) -> OpModuleEepromGetDo<'buf>

Source

pub fn op_stats_get_dump(self) -> OpStatsGetDump<'buf>

Get statistics.

Request attributes:

Reply attributes:

Source

pub fn op_stats_get_do(self) -> OpStatsGetDo<'buf>

Get statistics.

Request attributes:

Reply attributes:

Source

pub fn op_phc_vclocks_get_dump(self) -> OpPhcVclocksGetDump<'buf>

Get PHC VCLOCKs.

Request attributes:

Reply attributes:

Source

pub fn op_phc_vclocks_get_do(self) -> OpPhcVclocksGetDo<'buf>

Get PHC VCLOCKs.

Request attributes:

Reply attributes:

Source

pub fn op_module_get_dump(self) -> OpModuleGetDump<'buf>

Get module params.

Request attributes:

Reply attributes:

Source

pub fn op_module_get_do(self) -> OpModuleGetDo<'buf>

Get module params.

Request attributes:

Reply attributes:

Source

pub fn op_module_set_do(self) -> OpModuleSetDo<'buf>

Set module params.

Request attributes:

Source

pub fn op_pse_get_dump(self) -> OpPseGetDump<'buf>

Source

pub fn op_pse_get_do(self) -> OpPseGetDo<'buf>

Source

pub fn op_pse_set_do(self) -> OpPseSetDo<'buf>

Source

pub fn op_rss_get_dump(self) -> OpRssGetDump<'buf>

Source

pub fn op_rss_get_do(self) -> OpRssGetDo<'buf>

Source

pub fn op_plca_get_cfg_dump(self) -> OpPlcaGetCfgDump<'buf>

Source

pub fn op_plca_get_cfg_do(self) -> OpPlcaGetCfgDo<'buf>

Source

pub fn op_plca_set_cfg_do(self) -> OpPlcaSetCfgDo<'buf>

Source

pub fn op_plca_get_status_dump(self) -> OpPlcaGetStatusDump<'buf>

Source

pub fn op_plca_get_status_do(self) -> OpPlcaGetStatusDo<'buf>

Source

pub fn op_mm_get_dump(self) -> OpMmGetDump<'buf>

Source

pub fn op_mm_get_do(self) -> OpMmGetDo<'buf>

Source

pub fn op_mm_set_do(self) -> OpMmSetDo<'buf>

Source

pub fn op_module_fw_flash_act_do(self) -> OpModuleFwFlashActDo<'buf>

Flash transceiver module firmware.

Request attributes:

Source

pub fn op_phy_get_dump(self) -> OpPhyGetDump<'buf>

Source

pub fn op_phy_get_do(self) -> OpPhyGetDo<'buf>

Source

pub fn op_tsconfig_get_dump(self) -> OpTsconfigGetDump<'buf>

Source

pub fn op_tsconfig_get_do(self) -> OpTsconfigGetDo<'buf>

Source

pub fn op_tsconfig_set_do(self) -> OpTsconfigSetDo<'buf>

Source

pub fn op_rss_set_do(self) -> OpRssSetDo<'buf>

Source

pub fn op_rss_create_act_do(self) -> OpRssCreateActDo<'buf>

Source

pub fn op_rss_delete_act_do(self) -> OpRssDeleteActDo<'buf>

Delete an RSS context.

Request attributes:

Source

pub fn op_mse_get_dump(self) -> OpMseGetDump<'buf>

Source

pub fn op_mse_get_do(self) -> OpMseGetDo<'buf>

Trait Implementations§

Source§

impl<'buf> Debug for Request<'buf>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'buf> Freeze for Request<'buf>

§

impl<'buf> RefUnwindSafe for Request<'buf>

§

impl<'buf> Send for Request<'buf>

§

impl<'buf> Sync for Request<'buf>

§

impl<'buf> Unpin for Request<'buf>

§

impl<'buf> UnsafeUnpin for Request<'buf>

§

impl<'buf> !UnwindSafe for Request<'buf>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.