Expand description
The pool feature: the app side of remote inference over weirdnet-net.
NetDialer: aDialerthat opens agent protocol streams to peers by id.LinkedNodes: aNodeSourceof the inference nodes among the user’s linked devices (active certs in theweirdnet-syncroster whose node announcesINFERENCE_APP), direct connections before relayed ones.connect: aPoolover both, presenting this device’s certificate.
The pool itself (crate::remote::pool) is transport-neutral.
Re-exports§
pub use crate::remote::pool::Answer;pub use crate::remote::pool::CatalogWatch;pub use crate::remote::pool::EventSink;pub use crate::remote::pool::Interrupted;pub use crate::remote::pool::Job;pub use crate::remote::pool::NoEvents;pub use crate::remote::pool::NodeSource;pub use crate::remote::pool::Pool;pub use crate::remote::pool::PoolEvent;pub use crate::remote::pool::PoolOptions;pub use crate::remote::pool::Stall;
Structs§
- Linked
Nodes - The inference nodes among the user’s linked devices.
- NetDialer
- Opens agent streams over a
weirdnet-netnode. Node ids are peer ids.
Constants§
- INFERENCE_
APP - The app name inference nodes announce (
Node::serve_app), so the pool can find them among the user’s linked devices. Model nodes do not announce it: apps never call them.
Functions§
- channel
- A
Channelover a stream: length-prefixed messages (crate::remote::codec). A task drives the stream; dropping the channel closes our side, and once both sides are done the stream is dropped. Call from a Tokio runtime. - connect
- A
Poolovernode: inference nodes among the roster’s linked devices, presentingcert(this device’s certificate) with every request. - decode_
cert - encode_
cert - A certificate as presented with a request (
Caller::cert_bytes,PoolOptions::cert). - stream_
limits - Stream limits for the agent protocols:
weirdnet-netdefaults (30 s resume window), no idle reset (a queued request can be quiet for a while;Queuedkeepalives come every 3 s).
Type Aliases§
- Roster
View - The roster as it is now (the app keeps it current from
weirdnet-sync).