pub struct FireRuleContext<'a> {
pub state: &'a SharedEventBridgeState,
pub delivery: &'a Arc<DeliveryBus>,
pub lambda_state: &'a Option<SharedLambdaState>,
pub logs_state: &'a Option<SharedLogsState>,
pub container_runtime: &'a Option<Arc<ContainerRuntime>>,
}Expand description
Borrowed context passed to fire_rule — all the surrounding state
it needs to deliver to the different target protocols. Bundled so
the callers don’t have to thread five positional args through.
Fields§
§state: &'a SharedEventBridgeState§delivery: &'a Arc<DeliveryBus>§lambda_state: &'a Option<SharedLambdaState>§logs_state: &'a Option<SharedLogsState>§container_runtime: &'a Option<Arc<ContainerRuntime>>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FireRuleContext<'a>
impl<'a> !UnwindSafe for FireRuleContext<'a>
impl<'a> Freeze for FireRuleContext<'a>
impl<'a> Send for FireRuleContext<'a>
impl<'a> Sync for FireRuleContext<'a>
impl<'a> Unpin for FireRuleContext<'a>
impl<'a> UnsafeUnpin for FireRuleContext<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more