Skip to main content

nv_redfish_dispatcher/
lib.rs

1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#![doc = include_str!("../README.md")]
17#![deny(
18    clippy::all,
19    clippy::pedantic,
20    clippy::nursery,
21    clippy::suspicious,
22    clippy::complexity,
23    clippy::perf
24)]
25#![deny(
26    clippy::absolute_paths,
27    clippy::todo,
28    clippy::tests_outside_test_module,
29    clippy::panic,
30    clippy::unwrap_used,
31    clippy::unwrap_in_result,
32    clippy::unused_trait_names,
33    clippy::print_stdout,
34    clippy::print_stderr
35)]
36#![deny(missing_docs)]
37#![allow(clippy::doc_markdown)]
38// Module-name repetition is intentional for this crate's public types
39// (RuntimeOutput, RuntimeEvent, RuntimeStats, etc.) which are re-exported.
40#![allow(clippy::module_name_repetitions)]
41
42pub mod event;
43pub mod runtime;
44pub mod scheduler;
45pub mod schedulers;
46pub mod stats;
47pub mod work;
48
49#[cfg(feature = "runtime-events")]
50#[doc(inline)]
51pub use event::RuntimeEvent;
52#[doc(inline)]
53pub use event::RuntimeEventType;
54#[doc(inline)]
55pub use event::{QueueEvent, QueueEventSink, QueueId};
56#[doc(inline)]
57pub use runtime::ClockConfig;
58#[doc(inline)]
59pub use runtime::FutureWork;
60#[doc(inline)]
61pub use runtime::ManualClock;
62#[doc(inline)]
63pub use runtime::Runtime;
64#[doc(inline)]
65pub use runtime::RuntimeConfig;
66#[doc(inline)]
67pub use runtime::RuntimeHandle;
68#[doc(inline)]
69pub use runtime::RuntimeOutput;
70#[doc(inline)]
71pub use runtime::RuntimeRootMut;
72#[doc(inline)]
73pub use scheduler::RuntimeChildContainer;
74#[doc(inline)]
75pub use scheduler::ScheduledWork;
76#[doc(inline)]
77pub use scheduler::Scheduler;
78#[doc(inline)]
79pub use stats::OutputQueueStats;
80#[doc(inline)]
81pub use stats::RuntimeStats;
82#[doc(inline)]
83pub use work::Completion;
84#[doc(inline)]
85pub use work::CompletionOutcome;
86#[doc(inline)]
87pub use work::CostUnits;
88#[doc(inline)]
89pub use work::HasCost;
90#[doc(inline)]
91pub use work::HasPriority;
92#[doc(inline)]
93pub use work::Readiness;
94#[doc(inline)]
95pub use work::RoutingPath;
96#[doc(inline)]
97pub use work::WithCost;
98#[doc(inline)]
99pub use work::WithPriority;
100#[doc(inline)]
101pub use work::WorkMeta;
102
103#[doc(inline)]
104pub use schedulers::Fifo;
105#[doc(inline)]
106pub use schedulers::StochasticFairQueue;
107#[doc(inline)]
108pub use schedulers::{
109    AdmissionContext, AdmissionDecision, AdmissionPolicy, BoundedQueue, BoundedQueueBuilder,
110    BoundedQueuePair, BoundedQueueProducer, BoundedQueueStats, EnqueueOutcome, QueueDiscipline,
111    QueueEntryId, QueueEntryRef, QueueLifecycle, TailDrop,
112};
113#[doc(inline)]
114pub use schedulers::{
115    BoundedConcurrency, BreakerState, CircuitBreaker, CircuitBreakerConfig, FixedCost,
116    PeriodicLeaf, RemovedChild, RoundRobin, StrictPriority, TokenBucket, TokenBucketConfig,
117};