Skip to main content

RunningSite

Struct RunningSite 

Source
pub struct RunningSite {
Show 26 fields pub site: SiteRef, pub domain: String, pub template: KindTemplate, pub paths: ProjectPaths, pub runtime: Arc<SiteRuntime>, pub partitions: SitePartitions, pub edge: SiteEdge, pub packs: PackSet, pub updates: Arc<UpdateEngine>, pub driver: Arc<UpdateDriver>, pub cards: Arc<UpdateCards>, pub experiments: Arc<ExperimentRunner>, pub ladder: AutonomyLadder, pub pauses: Arc<JobPauses>, pub alarms: Arc<AlarmRouter>, pub review: Arc<ReviewComposer>, pub spend: Arc<MeteredSpendLedger>, pub leads: Arc<Leads>, pub quotes: Arc<ReviewQuotes>, pub outbox: Option<Arc<EmailOutbox>>, pub incidents: Arc<IncidentPath>, pub inbox: Option<Arc<SiteInbox>>, pub guardian: Option<Arc<GuardianProbe>>, pub repository: Option<Arc<RepositoryEntry>>, pub learning: Arc<PlaybookLearning>, pub router: Router, /* private fields */
}
Available on crate feature website only.
Expand description

One running site.

Fields§

§site: SiteRef

The site.

§domain: String

Its domain.

§template: KindTemplate

Its kind’s template.

§paths: ProjectPaths

Its project.

§runtime: Arc<SiteRuntime>

The runtime the back office acts on.

§partitions: SitePartitions

Its partitions.

§edge: SiteEdge

The edge.

§packs: PackSet

The capability packs it loaded (spec 3.5 §7.23).

§updates: Arc<UpdateEngine>

The update engine.

§driver: Arc<UpdateDriver>

The engine’s driver: journal and cards.

§cards: Arc<UpdateCards>

Held deliveries and items as the owner’s decision cards.

§experiments: Arc<ExperimentRunner>

Experiments.

§ladder: AutonomyLadder

The ladder of the site’s jobs.

§pauses: Arc<JobPauses>

The job pauses guardrails set.

§alarms: Arc<AlarmRouter>

The owner’s alarms.

§review: Arc<ReviewComposer>

The weekly review.

§spend: Arc<MeteredSpendLedger>

The spend ledger agents’ runs commit to, metered for the spend KPI source.

§leads: Arc<Leads>

The site’s leads: scores, consent for nurture, one handoff each (spec 3.5 §5 S8).

§quotes: Arc<ReviewQuotes>

The reviews the site may quote, with the owner’s approvals (spec 3.5 S2).

§outbox: Option<Arc<EmailOutbox>>

The site’s email outbox, when the site has email (spec 3.5 §7.13).

§incidents: Arc<IncidentPath>

The incident path over the edge’s status, the alarms and the ladder (spec 3.5 §7.20).

§inbox: Option<Arc<SiteInbox>>

The Inbox, when the site has a model and its kind runs one (spec 3.5 §7.19): it reads the site’s email while the site serves, and the chat messages of unpaired accounts handed to it.

§guardian: Option<Arc<GuardianProbe>>

The Guardian’s probe, when the site has SiteOptions::probe and a domain claim; the kernel runs it every five minutes (spec 3.5 §7.20).

§repository: Option<Arc<RepositoryEntry>>

Files and git as an entry point, when the project has a repository.json: its hooks on the edge at /hooks/{name} (spec 3.5 §7.8.2).

§learning: Arc<PlaybookLearning>

The playbook-learning job: proposals from the week’s outcomes, decided by the owner (spec 3.5 §7.15).

§router: Router

The router serving the edge, the stream feed and the release.

Implementations§

Source§

impl RunningSite

Source

pub async fn back_office( &self, stores: &SiteStores, model: Arc<dyn Llm>, ) -> Result<BuiltTeam, AdkError>

The site’s back office over model (spec 3.5 §7.19): every back-office agent the kind runs, each with its jobs’ tools, the owner’s standing rules, the owner’s approval inbox for held calls and the publish delay, compiled as one team led by the Steward.

§Errors

A store’s error, or a team that does not build.

Source§

impl RunningSite

Source

pub async fn open( paths: ProjectPaths, stores: &SiteStores, options: &SiteOptions, ) -> Result<RunningSite, AdkError>

Opens the site at paths over the kernel’s stores (spec 3.5 §7.17): continues after the release its host serves, and brings a committed charter’s jobs onto the ladder.

§Errors

A project that does not load, a key file that is not valid, or a store that does not open.

Source

pub fn signals(&self) -> Arc<KernelSignals> ⓘ

The edge’s signals into the back office (spec 3.5 §7.10): what a public agent or a form files, which wakes the back office’s processes while the site serves.

Source

pub fn tracker(&self) -> &KpiTracker

The KPI tracker the site measures with, for the owner’s site view (spec 3.5 §7.24).

Source

pub fn triggers(&self) -> &[Trigger]

The kernel triggers the site’s own processes run on: the experiments’ daily look.

Source

pub fn start(&mut self, idle: Duration)

Starts the site’s background work: the update engine on its schedule, AEO once a day (checked every idle), and the edge’s trust resolver. The KPI tracker runs as the kernel’s kernel.kpi process (CharterKit).

Source

pub fn upkeep( &self, stores: &SiteStores, options: &SiteOptions, ) -> Option<Arc<UpkeepCheck>>

The hosting job’s upkeep check (spec 3.5 §7.20), when the site has a lockfile with an advisory source or a certificate source: proposals go to owner’s approval inbox.

Trait Implementations§

Source§

impl Debug for RunningSite

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Drop for RunningSite

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for RunningSite

§

impl !UnwindSafe for RunningSite

§

impl Forget for RunningSite

§

impl Freeze for RunningSite
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, &'static str: Freeze, PhantomData<Goal>: Freeze, PhantomData<Kpi>: Freeze, PhantomData<Guardrail>: Freeze, PhantomData<AgentRole>: Freeze, PhantomData<&'static str>: Freeze, PhantomData<KindRule>: Freeze, PhantomData<RedLine>: Freeze, *const LeafNode<SpendCategory, u64> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(SpendCategory, u64)>>: Freeze, *const ArcInner<SiteRuntime> is !null: Freeze, PhantomData<ArcInner<SiteRuntime>>: Freeze, PhantomData<String>: Freeze, *const LeafNode<UsageUnit, u64> is !null: Freeze, PhantomData<Box<(UsageUnit, u64)>>: Freeze, *const LeafNode<PartitionId, SetValZST> is !null: Freeze, PhantomData<Box<(PartitionId, SetValZST)>>: Freeze, *const ArcInner<EdgeInner> is !null: Freeze, PhantomData<ArcInner<EdgeInner>>: Freeze, *const ArcInner<QuoteBook> is !null: Freeze, PhantomData<ArcInner<QuoteBook>>: Freeze, *const ArcInner<OrderBook> is !null: Freeze, PhantomData<ArcInner<OrderBook>>: Freeze, *const ArcInner<EdgeLiveStore> is !null: Freeze, PhantomData<ArcInner<EdgeLiveStore>>: Freeze, PhantomData<Arc<LoadedPack>>: Freeze, PhantomData<RefusedPack>: Freeze, *const ArcInner<UpdateEngine> is !null: Freeze, PhantomData<ArcInner<UpdateEngine>>: Freeze, *const ArcInner<UpdateDriver> is !null: Freeze, PhantomData<ArcInner<UpdateDriver>>: Freeze, *const ArcInner<UpdateCards> is !null: Freeze, PhantomData<ArcInner<UpdateCards>>: Freeze, *const ArcInner<ExperimentRunner> is !null: Freeze, PhantomData<ArcInner<ExperimentRunner>>: Freeze, *const ArcInner<dyn AutonomyStore> is !null: Freeze, PhantomData<ArcInner<dyn AutonomyStore>>: Freeze, *const ArcInner<dyn CharterStore> is !null: Freeze, PhantomData<ArcInner<dyn CharterStore>>: Freeze, *const ArcInner<dyn Clock> is !null: Freeze, PhantomData<ArcInner<dyn Clock>>: Freeze, *const ArcInner<dyn AuditRecorder> is !null: Freeze, PhantomData<ArcInner<dyn AuditRecorder>>: Freeze, *const ArcInner<dyn CharterEventSink> is !null: Freeze, PhantomData<ArcInner<dyn CharterEventSink>>: Freeze, *const ArcInner<JobPauses> is !null: Freeze, PhantomData<ArcInner<JobPauses>>: Freeze, *const ArcInner<AlarmRouter> is !null: Freeze, PhantomData<ArcInner<AlarmRouter>>: Freeze, *const ArcInner<ReviewComposer> is !null: Freeze, PhantomData<ArcInner<ReviewComposer>>: Freeze, *const ArcInner<MeteredSpendLedger> is !null: Freeze, PhantomData<ArcInner<MeteredSpendLedger>>: Freeze, *const ArcInner<Leads> is !null: Freeze, PhantomData<ArcInner<Leads>>: Freeze, *const ArcInner<ReviewQuotes> is !null: Freeze, PhantomData<ArcInner<ReviewQuotes>>: Freeze, *const ArcInner<EmailOutbox> is !null: Freeze, PhantomData<ArcInner<EmailOutbox>>: Freeze, *const ArcInner<IncidentPath> is !null: Freeze, PhantomData<ArcInner<IncidentPath>>: Freeze, *const ArcInner<SiteInbox> is !null: Freeze, PhantomData<ArcInner<SiteInbox>>: Freeze, *const ArcInner<GuardianProbe> is !null: Freeze, PhantomData<ArcInner<GuardianProbe>>: Freeze, *const ArcInner<RepositoryEntry> is !null: Freeze, PhantomData<ArcInner<RepositoryEntry>>: Freeze, *const ArcInner<PlaybookLearning> is !null: Freeze, PhantomData<ArcInner<PlaybookLearning>>: Freeze, PhantomData<UrgencyRoute>: Freeze, *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, *const ArcInner<KernelSignals> is !null: Freeze, PhantomData<ArcInner<KernelSignals>>: Freeze, *const ArcInner<RouterInner<()>> is !null: Freeze, PhantomData<ArcInner<RouterInner<()>>>: Freeze, PhantomData<Trigger>: Freeze, *const ArcInner<dyn KpiStore> is !null: Freeze, PhantomData<ArcInner<dyn KpiStore>>: Freeze, *const LeafNode<String, Arc<dyn KpiSource>> is !null: Freeze, PhantomData<Box<(String, Arc<dyn KpiSource>)>>: Freeze, *const ArcInner<dyn JobControl> is !null: Freeze, PhantomData<ArcInner<dyn JobControl>>: Freeze, PhantomData<Arc<dyn SearchProvider>>: Freeze, *const ArcInner<dyn BeaconStore> is !null: Freeze, PhantomData<ArcInner<dyn BeaconStore>>: Freeze, PhantomData<JoinHandle<()>>: Freeze,

§

impl Move for RunningSite

§

impl Send for RunningSite
where RawVecInner: Send, &'static str: Send, NonZero<i32>: Send, Utc: Send, NodeRef<Owned, SpendCategory, u64, LeafOrInternal>: Send, BoxRaw<(SpendCategory, u64)>: Send, Arc<SiteRuntime>: Send, NodeRef<Owned, UsageUnit, u64, LeafOrInternal>: Send, BoxRaw<(UsageUnit, u64)>: Send, NodeRef<Owned, PartitionId, SetValZST, LeafOrInternal>: Send, BoxRaw<(PartitionId, SetValZST)>: Send, Arc<EdgeInner>: Send, Arc<QuoteBook>: Send, Arc<OrderBook>: Send, Arc<EdgeLiveStore>: Send, Arc<LoadedPack>: Send, Arc<UpdateEngine>: Send, Arc<UpdateDriver>: Send, Arc<UpdateCards>: Send, Arc<ExperimentRunner>: Send, Arc<dyn AutonomyStore>: Send, Arc<dyn CharterStore>: Send, Arc<dyn Clock>: Send, Arc<dyn AuditRecorder>: Send, Arc<dyn CharterEventSink>: Send, Arc<JobPauses>: Send, Arc<AlarmRouter>: Send, Arc<ReviewComposer>: Send, Arc<MeteredSpendLedger>: Send, Arc<Leads>: Send, Arc<ReviewQuotes>: Send, Arc<EmailOutbox>: Send, Arc<IncidentPath>: Send, Arc<SiteInbox>: Send, Arc<GuardianProbe>: Send, Arc<RepositoryEntry>: Send, Arc<PlaybookLearning>: Send, Arc<Inner>: Send, Arc<KernelSignals>: Send, Arc<RouterInner<()>>: Send, RawTable<usize>: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, Arc<dyn KpiStore>: Send, NodeRef<Owned, String, Arc<dyn KpiSource>, LeafOrInternal>: Send, BoxRaw<(String, Arc<dyn KpiSource>)>: Send, Arc<dyn JobControl>: Send, Arc<dyn SearchProvider>: Send, Arc<dyn BeaconStore>: Send, JoinHandle<()>: Send,

§

impl Sync for RunningSite
where RawVecInner: Sync, NonZero<i32>: Sync, Utc: Sync, NodeRef<Owned, SpendCategory, u64, LeafOrInternal>: Sync, BoxRaw<(SpendCategory, u64)>: Sync, Arc<SiteRuntime>: Sync, NodeRef<Owned, UsageUnit, u64, LeafOrInternal>: Sync, BoxRaw<(UsageUnit, u64)>: Sync, NodeRef<Owned, PartitionId, SetValZST, LeafOrInternal>: Sync, BoxRaw<(PartitionId, SetValZST)>: Sync, Arc<EdgeInner>: Sync, Arc<QuoteBook>: Sync, Arc<OrderBook>: Sync, Arc<EdgeLiveStore>: Sync, Arc<LoadedPack>: Sync, Arc<UpdateEngine>: Sync, Arc<UpdateDriver>: Sync, Arc<UpdateCards>: Sync, Arc<ExperimentRunner>: Sync, Arc<dyn AutonomyStore>: Sync, Arc<dyn CharterStore>: Sync, Arc<dyn Clock>: Sync, Arc<dyn AuditRecorder>: Sync, Arc<dyn CharterEventSink>: Sync, Arc<JobPauses>: Sync, Arc<AlarmRouter>: Sync, Arc<ReviewComposer>: Sync, Arc<MeteredSpendLedger>: Sync, Arc<Leads>: Sync, Arc<ReviewQuotes>: Sync, Arc<EmailOutbox>: Sync, Arc<IncidentPath>: Sync, Arc<SiteInbox>: Sync, Arc<GuardianProbe>: Sync, Arc<RepositoryEntry>: Sync, Arc<PlaybookLearning>: Sync, Arc<Inner>: Sync, Arc<KernelSignals>: Sync, Arc<RouterInner<()>>: Sync, RawTable<usize>: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, Arc<dyn KpiStore>: Sync, NodeRef<Owned, String, Arc<dyn KpiSource>, LeafOrInternal>: Sync, BoxRaw<(String, Arc<dyn KpiSource>)>: Sync, Arc<dyn JobControl>: Sync, Arc<dyn SearchProvider>: Sync, Arc<dyn BeaconStore>: Sync, JoinHandle<()>: Sync,

§

impl Unpin for RunningSite

§

impl UnsafeUnpin for RunningSite
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, &'static str: UnsafeUnpin, PhantomData<Goal>: UnsafeUnpin, PhantomData<Kpi>: UnsafeUnpin, PhantomData<Guardrail>: UnsafeUnpin, PhantomData<AgentRole>: UnsafeUnpin, PhantomData<&'static str>: UnsafeUnpin, PhantomData<KindRule>: UnsafeUnpin, PhantomData<RedLine>: UnsafeUnpin, *const LeafNode<SpendCategory, u64> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(SpendCategory, u64)>>: UnsafeUnpin, *const ArcInner<SiteRuntime> is !null: UnsafeUnpin, PhantomData<ArcInner<SiteRuntime>>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const LeafNode<UsageUnit, u64> is !null: UnsafeUnpin, PhantomData<Box<(UsageUnit, u64)>>: UnsafeUnpin, *const LeafNode<PartitionId, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(PartitionId, SetValZST)>>: UnsafeUnpin, *const ArcInner<EdgeInner> is !null: UnsafeUnpin, PhantomData<ArcInner<EdgeInner>>: UnsafeUnpin, *const ArcInner<QuoteBook> is !null: UnsafeUnpin, PhantomData<ArcInner<QuoteBook>>: UnsafeUnpin, *const ArcInner<OrderBook> is !null: UnsafeUnpin, PhantomData<ArcInner<OrderBook>>: UnsafeUnpin, *const ArcInner<EdgeLiveStore> is !null: UnsafeUnpin, PhantomData<ArcInner<EdgeLiveStore>>: UnsafeUnpin, PhantomData<Arc<LoadedPack>>: UnsafeUnpin, PhantomData<RefusedPack>: UnsafeUnpin, *const ArcInner<UpdateEngine> is !null: UnsafeUnpin, PhantomData<ArcInner<UpdateEngine>>: UnsafeUnpin, *const ArcInner<UpdateDriver> is !null: UnsafeUnpin, PhantomData<ArcInner<UpdateDriver>>: UnsafeUnpin, *const ArcInner<UpdateCards> is !null: UnsafeUnpin, PhantomData<ArcInner<UpdateCards>>: UnsafeUnpin, *const ArcInner<ExperimentRunner> is !null: UnsafeUnpin, PhantomData<ArcInner<ExperimentRunner>>: UnsafeUnpin, *const ArcInner<dyn AutonomyStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AutonomyStore>>: UnsafeUnpin, *const ArcInner<dyn CharterStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn CharterStore>>: UnsafeUnpin, *const ArcInner<dyn Clock> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Clock>>: UnsafeUnpin, *const ArcInner<dyn AuditRecorder> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AuditRecorder>>: UnsafeUnpin, *const ArcInner<dyn CharterEventSink> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn CharterEventSink>>: UnsafeUnpin, *const ArcInner<JobPauses> is !null: UnsafeUnpin, PhantomData<ArcInner<JobPauses>>: UnsafeUnpin, *const ArcInner<AlarmRouter> is !null: UnsafeUnpin, PhantomData<ArcInner<AlarmRouter>>: UnsafeUnpin, *const ArcInner<ReviewComposer> is !null: UnsafeUnpin, PhantomData<ArcInner<ReviewComposer>>: UnsafeUnpin, *const ArcInner<MeteredSpendLedger> is !null: UnsafeUnpin, PhantomData<ArcInner<MeteredSpendLedger>>: UnsafeUnpin, *const ArcInner<Leads> is !null: UnsafeUnpin, PhantomData<ArcInner<Leads>>: UnsafeUnpin, *const ArcInner<ReviewQuotes> is !null: UnsafeUnpin, PhantomData<ArcInner<ReviewQuotes>>: UnsafeUnpin, *const ArcInner<EmailOutbox> is !null: UnsafeUnpin, PhantomData<ArcInner<EmailOutbox>>: UnsafeUnpin, *const ArcInner<IncidentPath> is !null: UnsafeUnpin, PhantomData<ArcInner<IncidentPath>>: UnsafeUnpin, *const ArcInner<SiteInbox> is !null: UnsafeUnpin, PhantomData<ArcInner<SiteInbox>>: UnsafeUnpin, *const ArcInner<GuardianProbe> is !null: UnsafeUnpin, PhantomData<ArcInner<GuardianProbe>>: UnsafeUnpin, *const ArcInner<RepositoryEntry> is !null: UnsafeUnpin, PhantomData<ArcInner<RepositoryEntry>>: UnsafeUnpin, *const ArcInner<PlaybookLearning> is !null: UnsafeUnpin, PhantomData<ArcInner<PlaybookLearning>>: UnsafeUnpin, PhantomData<UrgencyRoute>: UnsafeUnpin, *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, *const ArcInner<KernelSignals> is !null: UnsafeUnpin, PhantomData<ArcInner<KernelSignals>>: UnsafeUnpin, *const ArcInner<RouterInner<()>> is !null: UnsafeUnpin, PhantomData<ArcInner<RouterInner<()>>>: UnsafeUnpin, PhantomData<Trigger>: UnsafeUnpin, *const ArcInner<dyn KpiStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn KpiStore>>: UnsafeUnpin, *const LeafNode<String, Arc<dyn KpiSource>> is !null: UnsafeUnpin, PhantomData<Box<(String, Arc<dyn KpiSource>)>>: UnsafeUnpin, *const ArcInner<dyn JobControl> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn JobControl>>: UnsafeUnpin, PhantomData<Arc<dyn SearchProvider>>: UnsafeUnpin, *const ArcInner<dyn BeaconStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn BeaconStore>>: UnsafeUnpin, PhantomData<JoinHandle<()>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> MaybeSend for T
where T: Send,

Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more