pub struct EventService<B: Bmc> { /* private fields */ }Expand description
Event service.
Provides functions to inspect event delivery capabilities and parse
event payloads from ServerSentEventUri.
Implementations§
Source§impl<B: Bmc> EventService<B>
impl<B: Bmc> EventService<B>
Sourcepub async fn events(
&self,
) -> Result<BoxTryStream<EventStreamPayload, Error<B>>, Error<B>>where
B: 'static,
B::Error: 'static,
pub async fn events(
&self,
) -> Result<BoxTryStream<EventStreamPayload, Error<B>>, Error<B>>where
B: 'static,
B::Error: 'static,
Open an SSE stream of Redfish event payloads.
Payload kind is selected by @odata.type:
Event->EventStreamPayload::EventMetricReport->EventStreamPayload::MetricReport
§Errors
Returns an error if:
ServerSentEventUriis not present inEventService- opening or consuming the SSE stream through the underlying BMC transport fails
- deserializing patched SSE payload into
EventStreamPayloadfails
Trait Implementations§
Source§impl<B: Bmc> Resource for EventService<B>
impl<B: Bmc> Resource for EventService<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 EventService<B>
impl<B> !RefUnwindSafe for EventService<B>
impl<B> Send for EventService<B>
impl<B> Sync for EventService<B>
impl<B> Unpin for EventService<B>
impl<B> UnsafeUnpin for EventService<B>
impl<B> !UnwindSafe for EventService<B>
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