#[non_exhaustive]pub struct InitializedEvent<'a> { /* private fields */ }Expand description
The agent finished construction and initialized its built-in components (InitializedEvent).
It fires outside any invocation, so it carries no invocation state.
Implementations§
Source§impl<'a> InitializedEvent<'a>
impl<'a> InitializedEvent<'a>
Sourcepub fn agent(&self) -> &LocalAgent
pub fn agent(&self) -> &LocalAgent
The agent.
Sourcepub fn agent_mut(&mut self) -> &mut LocalAgent
pub fn agent_mut(&mut self) -> &mut LocalAgent
The agent, mutably.
Trait Implementations§
Source§impl Debug for InitializedEvent<'_>
impl Debug for InitializedEvent<'_>
Source§impl From<&InitializedEvent<'_>> for InitializedEventData
impl From<&InitializedEvent<'_>> for InitializedEventData
Source§fn from(_: &InitializedEvent<'_>) -> Self
fn from(_: &InitializedEvent<'_>) -> Self
Converts to this type from the input type.
Source§impl HookEvent for InitializedEvent<'static>
impl HookEvent for InitializedEvent<'static>
Source§type Event<'a> = InitializedEvent<'a>
type Event<'a> = InitializedEvent<'a>
The event type for an agent borrow of lifetime
'a.impl<H> IntoHookImpl<InitializedEvent<'static>> for Hwhere
H: for<'a> Hook<InitializedEvent<'a>>,
impl<F, R> IntoSyncHook<InitializedEvent<'static>> for F
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InitializedEvent<'a>
impl<'a> !UnwindSafe for InitializedEvent<'a>
impl<'a> Freeze for InitializedEvent<'a>
impl<'a> Send for InitializedEvent<'a>
impl<'a> Sync for InitializedEvent<'a>
impl<'a> Unpin for InitializedEvent<'a>
impl<'a> UnsafeUnpin for InitializedEvent<'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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreCreates a shared type from an unshared type.