pub struct ShuttleConfig {
pub hosts_file: PathBuf,
pub known_hosts_file: PathBuf,
pub default_timeout_secs: u64,
pub max_output_bytes: usize,
pub allowed_hosts: Option<Vec<String>>,
pub allowed_tunnel_destinations: Option<Vec<String>>,
pub connection_pool_size: usize,
/* private fields */
}Fields§
§hosts_file: PathBuf§known_hosts_file: PathBuf§default_timeout_secs: u64§max_output_bytes: usize§allowed_hosts: Option<Vec<String>>§allowed_tunnel_destinations: Option<Vec<String>>§connection_pool_size: usizeImplementations§
Source§impl ShuttleConfig
impl ShuttleConfig
pub fn load_hosts(&mut self) -> Result<(), ConfigError>
pub fn resolve_host(&self, name: &str) -> Result<&HostEntry, ConfigError>
pub fn host_names(&self) -> Vec<&str>
pub fn apply_rpc_config(&mut self, config: &HashMap<String, Value>)
Trait Implementations§
Source§impl Clone for ShuttleConfig
impl Clone for ShuttleConfig
Source§fn clone(&self) -> ShuttleConfig
fn clone(&self) -> ShuttleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShuttleConfig
impl Debug for ShuttleConfig
Auto Trait Implementations§
impl Freeze for ShuttleConfig
impl RefUnwindSafe for ShuttleConfig
impl Send for ShuttleConfig
impl Sync for ShuttleConfig
impl Unpin for ShuttleConfig
impl UnsafeUnpin for ShuttleConfig
impl UnwindSafe for ShuttleConfig
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