pub struct NetworkAdapter<B: Bmc> { /* private fields */ }Expand description
Network Adapter.
Provides functions to access log entries and perform log operations.
Implementations§
Source§impl<B: Bmc> NetworkAdapter<B>
impl<B: Bmc> NetworkAdapter<B>
Sourcepub fn raw(&self) -> Arc<NetworkAdapterSchema>
pub fn raw(&self) -> Arc<NetworkAdapterSchema>
Get the raw schema data for this ethernet adapter.
Sourcepub fn hardware_id(&self) -> HardwareIdRef<'_, NetworkAdapterTag>
pub fn hardware_id(&self) -> HardwareIdRef<'_, NetworkAdapterTag>
Get hardware identifier of the network adpater.
Sourcepub async fn network_device_functions(
&self,
) -> Result<Option<NetworkDeviceFunctionCollection<B>>, Error<B>>
pub async fn network_device_functions( &self, ) -> Result<Option<NetworkDeviceFunctionCollection<B>>, Error<B>>
Get network device functions for this adapter.
Returns Ok(None) when the network device functions link is absent.
§Errors
Returns an error if fetching network device functions data fails.
Trait Implementations§
Source§impl<B: Bmc> Resource for NetworkAdapter<B>
impl<B: Bmc> Resource for NetworkAdapter<B>
Source§fn resource_ref(&self) -> &ResourceSchema
fn resource_ref(&self) -> &ResourceSchema
Required function. Must be implemented for Redfish resources.
Source§fn id(&self) -> ResourceIdRef<'_>
fn id(&self) -> ResourceIdRef<'_>
Identifier of the resource.
Source§fn name(&self) -> ResourceNameRef<'_>
fn name(&self) -> ResourceNameRef<'_>
Name of the resource.
Source§fn description(&self) -> Option<ResourceDescriptionRef<'_>>
fn description(&self) -> Option<ResourceDescriptionRef<'_>>
Description of the resource.
Auto Trait Implementations§
impl<B> Freeze for NetworkAdapter<B>
impl<B> RefUnwindSafe for NetworkAdapter<B>where
B: RefUnwindSafe,
impl<B> Send for NetworkAdapter<B>
impl<B> Sync for NetworkAdapter<B>
impl<B> Unpin for NetworkAdapter<B>
impl<B> UnsafeUnpin for NetworkAdapter<B>
impl<B> UnwindSafe for NetworkAdapter<B>where
B: RefUnwindSafe,
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