pub struct Actions {
pub oem: Option<OemActions>,
pub reset: Option<Action<NetworkAdapterResetAction, ()>>,
pub reset_settings_to_default: Option<Action<NetworkAdapterResetSettingsToDefaultAction, ()>>,
}Expand description
The available actions for this resource.
This type shall contain the available actions for this resource.
Fields§
§oem: Option<OemActions>The available OEM-specific actions for this resource.
This property shall contain the available OEM-specific actions for this resource.
reset: Option<Action<NetworkAdapterResetAction, ()>>§reset_settings_to_default: Option<Action<NetworkAdapterResetSettingsToDefaultAction, ()>>Implementations§
Source§impl Actions
impl Actions
Sourcepub async fn reset<B: Bmc>(
&self,
bmc: &B,
reset_type: Option<ResetType>,
) -> Result<ModificationResponse<()>, B::Error>where
B::Error: ActionError,
pub async fn reset<B: Bmc>(
&self,
bmc: &B,
reset_type: Option<ResetType>,
) -> Result<ModificationResponse<()>, B::Error>where
B::Error: ActionError,
This action resets the network adapter.
This action shall reset a network adapter.
§Errors
- Not supported error if reference to action is not supported by the server.
- BMC Action errors if returned by BMC implementation.
Sourcepub async fn reset_settings_to_default<B: Bmc>(
&self,
bmc: &B,
) -> Result<ModificationResponse<()>, B::Error>where
B::Error: ActionError,
pub async fn reset_settings_to_default<B: Bmc>(
&self,
bmc: &B,
) -> Result<ModificationResponse<()>, B::Error>where
B::Error: ActionError,
This action is to clear the settings back to factory defaults.
This action shall reset of all active and pending settings back to factory default settings upon reset of the network adapter.
§Errors
- Not supported error if reference to action is not supported by the server.
- BMC Action errors if returned by BMC implementation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Actions
impl<'de> Deserialize<'de> for Actions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Send for Actions
SAFETY: All generated data types are Send
impl Sync for Actions
SAFETY: All generated data types are Sync
Auto Trait Implementations§
impl Freeze for Actions
impl RefUnwindSafe for Actions
impl Unpin for Actions
impl UnsafeUnpin for Actions
impl UnwindSafe for Actions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more