pub trait EventBridge: BridgeTypes {
// Required methods
fn emit_structured_event(
&mut self,
event: StructuredEventRecord,
) -> Result<(), Self::Error>;
fn emit_diagnostic(
&mut self,
event: DiagnosticRecord,
) -> Result<(), Self::Error>;
fn emit_log(&mut self, event: LogRecord) -> Result<(), Self::Error>;
fn emit_lifecycle(
&mut self,
event: LifecycleEventRecord,
) -> Result<(), Self::Error>;
}Required Methods§
fn emit_structured_event( &mut self, event: StructuredEventRecord, ) -> Result<(), Self::Error>
fn emit_diagnostic( &mut self, event: DiagnosticRecord, ) -> Result<(), Self::Error>
fn emit_log(&mut self, event: LogRecord) -> Result<(), Self::Error>
fn emit_lifecycle( &mut self, event: LifecycleEventRecord, ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".