Skip to main content

ComputerSystem

Struct ComputerSystem 

Source
pub struct ComputerSystem<B: Bmc> { /* private fields */ }
Expand description

Represents a computer system in the BMC.

Provides access to system information and sub-resources such as processors.

Implementations§

Source§

impl<B: Bmc> ComputerSystem<B>

Source

pub fn raw(&self) -> Arc<ComputerSystemSchema>

Get the raw schema data for this computer system.

Returns an Arc to the underlying schema, allowing cheap cloning and sharing of the data.

Source

pub fn hardware_id(&self) -> HardwareIdRef<'_, ComputerSystemTag>

Get hardware identifier of the network adpater.

Source

pub fn sku(&self) -> Option<TaggedType<&String, ComputerSystemSkuTag>>

The manufacturer SKU for this system.

Source

pub fn power_state(&self) -> Option<PowerState>

Power state of this system.

Source

pub fn boot_order(&self) -> Option<Vec<BootOptionReference<&String>>>

An array of BootOptionReference strings that represent the persistent boot order for with this computer system.

Source

pub async fn bios(&self) -> Result<Bios<B>, Error<B>>

Bios associated with this system.

Fetches the BIOS settings.

§Errors

Returns an error if:

  • The system does not provide bios settings
  • Fetching bios data fails
Source

pub async fn processors(&self) -> Result<Vec<Processor<B>>, Error<B>>

Get processors associated with this system.

Fetches the processor collection and returns a list of Processor handles.

§Errors

Returns an error if:

  • The system does not have a processors collection
  • Fetching processor data fails
Source

pub async fn secure_boot(&self) -> Result<SecureBoot<B>, Error<B>>

Get secure boot resource associated with this system.

§Errors

Returns an error if:

  • The system does not have a secure boot resource
  • Fetching of secure boot data fails
Source

pub async fn storage_controllers(&self) -> Result<Vec<Storage<B>>, Error<B>>

Get storage controllers associated with this system.

Fetches the storage collection and returns a list of Storage handles.

§Errors

Returns an error if:

  • The system does not have a storage collection
  • Fetching storage data fails
Source

pub async fn memory_modules(&self) -> Result<Vec<Memory<B>>, Error<B>>

Get memory modules associated with this system.

Fetches the memory collection and returns a list of Memory handles.

§Errors

Returns an error if:

  • The system does not have a memory collection
  • Fetching memory data fails
Source

pub async fn log_services(&self) -> Result<Vec<LogService<B>>, Error<B>>

Get log services for this computer system.

§Errors

Returns an error if:

  • The computer system does not have log services
  • Fetching log service data fails
Source

pub async fn ethernet_interfaces( &self, ) -> Result<EthernetInterfaceCollection<B>, Error<B>>

Get ethernet interfaces for this computer system.

§Errors

Returns an error if:

  • The systems does not have / provide ethernet interfaces
  • Fetching ethernet internet data fails
Source

pub async fn boot_options(&self) -> Result<BootOptionCollection<B>, Error<B>>

Get collection of the UEFI boot options associated with this computer system.

§Errors

Returns an error if:

  • The systems does not have / provide boot options
  • Fetching boot options data fails
Source

pub async fn oem_nvidia_bluefield( &self, ) -> Result<NvidiaComputerSystem<B>, Error<B>>

NVIDIA Bluefield OEM extension

§Errors

Returns an error if:

  • Error::NvidiaComputerSystemNotAvailable if the systems does not have / provide NVIDIA OEM extension
  • Fetching data fails

Trait Implementations§

Source§

impl<B: Bmc> Resource for ComputerSystem<B>

Source§

fn resource_ref(&self) -> &ResourceSchema

Required function. Must be implemented for Redfish resources.
Source§

fn id(&self) -> ResourceIdRef<'_>

Identifier of the resource.
Source§

fn name(&self) -> ResourceNameRef<'_>

Name of the resource.
Source§

fn description(&self) -> Option<ResourceDescriptionRef<'_>>

Description of the resource.
Source§

fn oem_id(&self) -> Option<OemIdentifier<&String>>

OEM identifier if present in the resource.

Auto Trait Implementations§

§

impl<B> Freeze for ComputerSystem<B>

§

impl<B> RefUnwindSafe for ComputerSystem<B>
where B: RefUnwindSafe,

§

impl<B> Send for ComputerSystem<B>

§

impl<B> Sync for ComputerSystem<B>

§

impl<B> Unpin for ComputerSystem<B>

§

impl<B> UnsafeUnpin for ComputerSystem<B>

§

impl<B> UnwindSafe for ComputerSystem<B>
where B: RefUnwindSafe,

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