pub struct Wiring {
pub config: Arc<Config>,
pub graph: Arc<RouteGraph>,
pub hangars: PathBuf,
pub logbook: PathBuf,
pub queue: QueueFlight,
pub book: BookLayover,
pub read_learnings: ReadLearnings,
pub write_learnings: WriteLearnings,
}Expand description
Where a runtime reads and writes everything outside itself.
A struct rather than six positional arguments: they are all closures or paths, so the compiler would not catch two of them being swapped, and swapping the queue for the layover shelf is the kind of mistake that only shows up in production.
Fields§
§config: Arc<Config>The factory definition.
graph: Arc<RouteGraph>Its route map.
hangars: PathBufWhere agents’ own notes live.
logbook: PathBufThe factory’s shared memory.
queue: QueueFlightWhere a sent flight goes.
book: BookLayoverWhere work set down goes.
read_learnings: ReadLearningsHow to read what the factory has learned.
write_learnings: WriteLearningsHow to write it back.
Auto Trait Implementations§
impl !RefUnwindSafe for Wiring
impl !UnwindSafe for Wiring
impl Freeze for Wiring
impl Send for Wiring
impl Sync for Wiring
impl Unpin for Wiring
impl UnsafeUnpin for Wiring
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