pub struct LogService<B: Bmc> { /* private fields */ }Expand description
Log service.
Provides functions to access log entries and perform log operations.
Implementations§
Source§impl<B: Bmc> LogService<B>
impl<B: Bmc> LogService<B>
Sourcepub fn raw(&self) -> Arc<LogServiceSchema>
pub fn raw(&self) -> Arc<LogServiceSchema>
Get the raw schema data for this log service.
Returns an Arc to the underlying schema, allowing cheap cloning
and sharing of the data.
Sourcepub async fn entries(&self) -> Result<Option<Vec<Arc<LogEntry>>>, Error<B>>
pub async fn entries(&self) -> Result<Option<Vec<Arc<LogEntry>>>, Error<B>>
List all log entries.
§Errors
Returns an error if:
- The log service does not have a log entries collection
- Fetching log entries data fails
Sourcepub async fn filter_entries(
&self,
filter: FilterQuery,
) -> Result<Option<Vec<Arc<LogEntry>>>, Error<B>>
pub async fn filter_entries( &self, filter: FilterQuery, ) -> Result<Option<Vec<Arc<LogEntry>>>, Error<B>>
Filter log entries using OData filter query.
§Errors
Returns an error if:
- The log service does not have a log entries collection
- Filtering log entries data fails
Sourcepub async fn clear_log(
&self,
log_entry_codes: Option<String>,
) -> Result<ModificationResponse<()>, Error<B>>where
B::Error: ActionError,
pub async fn clear_log(
&self,
log_entry_codes: Option<String>,
) -> Result<ModificationResponse<()>, Error<B>>where
B::Error: ActionError,
Trait Implementations§
Source§impl<B: Bmc> Resource for LogService<B>
impl<B: Bmc> Resource for LogService<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 LogService<B>
impl<B> RefUnwindSafe for LogService<B>where
B: RefUnwindSafe,
impl<B> Send for LogService<B>
impl<B> Sync for LogService<B>
impl<B> Unpin for LogService<B>
impl<B> UnsafeUnpin for LogService<B>
impl<B> UnwindSafe for LogService<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