pub struct EthernetInterface<B: Bmc> { /* private fields */ }Expand description
Ethernet Interface.
Provides functions to access ethernet interface.
Implementations§
Source§impl<B: Bmc> EthernetInterface<B>
impl<B: Bmc> EthernetInterface<B>
Sourcepub fn raw(&self) -> Arc<EthernetInterfaceSchema>
pub fn raw(&self) -> Arc<EthernetInterfaceSchema>
Get the raw schema data for this ethernet interface.
Sourcepub fn interface_enabled(&self) -> Option<Enabled>
pub fn interface_enabled(&self) -> Option<Enabled>
State of the interface. None means that BMC hasn’t reported
interface state or reported null.
Sourcepub fn link_status(&self) -> Option<LinkStatus>
pub fn link_status(&self) -> Option<LinkStatus>
Link status of the interface.
Sourcepub fn mac_address(&self) -> Option<MacAddress<&String>>
pub fn mac_address(&self) -> Option<MacAddress<&String>>
MAC address of the interface.
Sourcepub fn uefi_device_path(&self) -> Option<UefiDevicePath<&String>>
pub fn uefi_device_path(&self) -> Option<UefiDevicePath<&String>>
UEFI device path for the interface.
Trait Implementations§
Source§impl<B: Bmc> Resource for EthernetInterface<B>
impl<B: Bmc> Resource for EthernetInterface<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 EthernetInterface<B>
impl<B> RefUnwindSafe for EthernetInterface<B>where
B: RefUnwindSafe,
impl<B> Send for EthernetInterface<B>
impl<B> Sync for EthernetInterface<B>
impl<B> Unpin for EthernetInterface<B>where
B: Unpin,
impl<B> UnsafeUnpin for EthernetInterface<B>
impl<B> UnwindSafe for EthernetInterface<B>where
B: UnwindSafe,
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