Skip to main content

NetworkAdapter

Struct NetworkAdapter 

Source
pub struct NetworkAdapter {
Show 23 fields pub base: Resource, pub status: Option<Status>, pub manufacturer: Option<Option<String>>, pub model: Option<Option<String>>, pub sku: Option<Option<String>>, pub serial_number: Option<Option<String>>, pub part_number: Option<Option<String>>, pub controllers: Option<Vec<Controllers>>, pub actions: Option<Actions>, pub location: Option<Location>, pub identifiers: Option<Vec<Identifier>>, pub measurements: Option<Vec<MeasurementBlock>>, pub lldp_enabled: Option<Boolean>, pub port_splitting: Option<Option<PortSplitting>>, pub port_aggregation: Option<Option<PortAggregation>>, pub network_ports: Option<ReferenceLeaf>, pub network_device_functions: Option<NavProperty<NetworkDeviceFunctionCollection>>, pub assembly: Option<NavProperty<Assembly>>, pub ports: Option<ReferenceLeaf>, pub certificates: Option<ReferenceLeaf>, pub metrics: Option<ReferenceLeaf>, pub environment_metrics: Option<NavProperty<EnvironmentMetrics>>, pub processors: Option<NavProperty<ProcessorCollection>>,
}
Expand description

The NetworkAdapter schema represents a physical network adapter capable of connecting to a computer network. Examples include but are not limited to Ethernet, Fibre Channel, and converged network adapters.

This resource shall represent a physical network adapter capable of connecting to a computer network in a Redfish implementation. Services should represent adapters that contain multiple controllers with independent management interfaces as multiple NetworkAdapter resources.

Fields§

§base: Resource

Base type

§status: Option<Status>

The status and health of the resource and its subordinate or dependent resources.

This property shall contain any status or health properties of the resource.

§manufacturer: Option<Option<String>>

The manufacturer or OEM of this network adapter.

This property shall contain a value that represents the manufacturer of the network adapter.

§model: Option<Option<String>>

The model string for this network adapter.

This property shall contain the information about how the manufacturer refers to this network adapter.

§sku: Option<Option<String>>

The manufacturer SKU for this network adapter.

This property shall contain the SKU for the network adapter.

§serial_number: Option<Option<String>>

The serial number for this network adapter.

This property shall contain the serial number for the network adapter.

§part_number: Option<Option<String>>

Part number for this network adapter.

This property shall contain the part number for the network adapter as defined by the manufacturer.

§controllers: Option<Vec<Controllers>>

The set of network controllers ASICs that make up this NetworkAdapter.

This property shall contain the set of network controllers ASICs that make up this network adapter.

§actions: Option<Actions>

The available actions for this resource.

This property shall contain the available actions for this resource.

§location: Option<Location>

The location of the network adapter.

This property shall contain the location information of the network adapter.

§identifiers: Option<Vec<Identifier>>

The durable names for the network adapter.

This property shall contain a list of all known durable names for the network adapter.

§measurements: Option<Vec<MeasurementBlock>>

An array of DSP0274-defined measurement blocks.

This property shall contain an array of DSP0274-defined measurement blocks.

§lldp_enabled: Option<Boolean>

Enable or disable LLDP globally for an adapter.

This property shall contain the state indicating whether LLDP is globally enabled on a network adapter. If set to false, the LLDPEnabled value for the ports associated with this adapter shall be disregarded.

§port_splitting: Option<Option<PortSplitting>>

The port splitting capabilities for this controller.

This property shall contain capability, status, and configuration values related to physically subdividing the lanes of ports on this controller.

§port_aggregation: Option<Option<PortAggregation>>

The port aggregation capabilities for this controller.

This property shall contain capability, status, and configuration values related to aggregating ports on this controller.

§network_ports: Option<ReferenceLeaf>§network_device_functions: Option<NavProperty<NetworkDeviceFunctionCollection>>

The link to the collection of network device functions associated with this network adapter.

This property shall contain a link to a resource collection of type NetworkDeviceFunctionCollection.

§assembly: Option<NavProperty<Assembly>>

The link to the assembly resource associated with this adapter.

This property shall contain a link to a resource of type Assembly.

§ports: Option<ReferenceLeaf>§certificates: Option<ReferenceLeaf>§metrics: Option<ReferenceLeaf>§environment_metrics: Option<NavProperty<EnvironmentMetrics>>

The link to the environment metrics for this network adapter.

This property shall contain a link to a resource of type EnvironmentMetrics that specifies the environment metrics for this network adapter.

§processors: Option<NavProperty<ProcessorCollection>>

The link to the collection of offload processors contained in this network adapter.

This property shall contain a link to a resource collection of type ProcessorCollection that represent the offload processors contained in this network adapter.

Trait Implementations§

Source§

impl Debug for NetworkAdapter

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for NetworkAdapter

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl EntityTypeRef for NetworkAdapter

Source§

fn odata_id(&self) -> &ODataId

Value of @odata.id field of the Entity.
Source§

fn etag(&self) -> Option<&ODataETag>

Value of @odata.etag field of the Entity.
Source§

fn refresh<B>( &self, bmc: &B, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc, Self: Sized + Sync + Send + 'static + for<'de> Deserialize<'de>,

Refresh the entity by fetching it again from the BMC.
Source§

impl Expandable for NetworkAdapter

Source§

fn expand<B>( &self, bmc: &B, query: ExpandQuery, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Expand the entity according to the provided query.
Source§

impl RedfishSettings<NetworkAdapter> for NetworkAdapter

Source§

fn settings_object(&self) -> Option<NavProperty<Self>>

Reference to the enity type object.
Source§

impl Updatable<NetworkAdapterUpdate> for NetworkAdapter

Source§

fn update<B>( &self, bmc: &B, update: &V, ) -> impl Future<Output = Result<ModificationResponse<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Update an entity using update as payload.

Auto Trait Implementations§

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,