shep-client 0.22.0

Async client for the shep daemon: typed requests, event subscriptions, and starting a shepherd that is not running yet
Documentation
//! Test doubles for a scripted daemon peer, shared with shep-cli via the
//! `test-support` feature. The only module that defines a `fake_daemon`.
//!
//! Every helper takes the socket path as `&Path`; the caller owns the
//! `TempDir`. No dev-dependencies, so `missing_docs` and
//! `missing_debug_implementations` apply here like any other public module.
//!
//! [`fake_daemon`] and [`sample_ack`] are handshake-only primitives.
//! [`FakeDaemon`] and the `fake_client_*` helpers connect a real
//! [`Client`](crate::client::Client) against a scripted peer.

mod autostart;
mod client;
mod handover;
mod handshake;
#[cfg(feature = "schema")]
mod schema;
mod scripted;
mod shared;
pub use autostart::{child_exiting_with, fast_opts, start_fake_daemon_answering_on};
pub use client::{
    fake_client_answering, fake_client_answering_refusals, fake_client_capturing_envelopes,
    fake_client_capturing_envelopes_with_ack, fake_client_event_then_reply,
    fake_client_needing_budget, fake_client_on, fake_client_out_of_order, fake_client_replying_err,
    fake_client_that_closes_after_handshake, fake_client_that_dies_mid_request,
    fake_client_that_never_replies, fake_client_with_ack, fake_client_with_push,
    fake_daemon_answering_with_ack, fake_daemon_scripted_on, fake_reconnecting_client_on,
};
pub use handover::{Handovers, Handshake, fake_daemon_across_handovers};
pub use handshake::{
    fake_daemon, fake_daemon_accepting_repeatedly, fake_daemon_accepting_repeatedly_with_ack,
    fake_daemon_wedged_after_handshake, serve_one_request,
};
#[cfg(feature = "schema")]
pub use schema::{printed_keys, schema_keys};
pub use scripted::FakeDaemon;
use scripted::{SCRIPT_CHANNEL_CAPACITY, ScriptCommand, serve_scripted};
use shared::{
    accept_handshaked, bind, handshake, read_envelope, send_sample_event, write_err, write_event,
    write_reply,
};
pub use shared::{control_address, sample_ack, sample_info};