distant-core 0.13.1

Core library for distant, enabling operation on a remote computer through file and process manipulation
Documentation
/// Capacity associated with a client broadcasting its received messages that
/// do not have a callback associated
pub const CLIENT_BROADCAST_CHANNEL_CAPACITY: usize = 10000;

/// Represents the maximum size (in bytes) that data will be read from pipes
/// per individual `read` call
///
/// Current setting is 16k size
pub const MAX_PIPE_CHUNK_SIZE: usize = 16384;

/// Duration in milliseconds to sleep between reading stdout/stderr chunks
/// to avoid sending many small messages to clients
pub const READ_PAUSE_MILLIS: u64 = 50;

/// Represents the length of the salt to use for encryption
pub const SALT_LEN: usize = 16;

/// Represents time in milliseconds a connection has to perform a handshake (on server side)
/// before the server discards the connection (5 minutes)
pub const CONN_HANDSHAKE_TIMEOUT_MILLIS: u64 = 300000;

/// Test-only constants
#[cfg(test)]
pub mod test {
    pub const BUFFER_SIZE: usize = 100;
    pub const TENANT: &str = "test-tenant";
}