pub struct AgentServerConfig { /* private fields */ }Implementations§
Source§impl AgentServerConfig
impl AgentServerConfig
pub fn set_user_token(&mut self, user_token: String)
pub fn set_ipv6(&mut self, ipv6: bool)
pub fn set_port(&mut self, port: u16)
pub fn set_rsa_dir(&mut self, rsa_dir: PathBuf)
pub fn set_worker_thread_number(&mut self, worker_thread_number: usize)
pub fn set_compress(&mut self, compress: bool)
pub fn set_proxy_addresses(&mut self, proxy_addresses: Vec<String>)
pub fn set_client_receive_buffer_size( &mut self, client_receive_buffer_size: usize, )
pub fn set_proxy_send_buffer_size(&mut self, proxy_send_buffer_size: usize)
pub fn set_connect_to_proxy_timeout(&mut self, connect_to_proxy_timeout: u64)
pub fn set_max_log_level(&mut self, max_log_level: String)
pub fn set_proxy_connection_read_timeout( &mut self, proxy_connection_read_timeout: u64, )
pub fn set_proxy_connection_write_timeout( &mut self, proxy_connection_write_timeout: u64, )
pub fn user_token(&self) -> &str
pub fn ipv6(&self) -> bool
pub fn port(&self) -> u16
pub fn rsa_dir(&self) -> &PathBuf
pub fn worker_thread_number(&self) -> usize
pub fn compress(&self) -> bool
pub fn proxy_addresses(&self) -> &Vec<String>
pub fn client_receive_buffer_size(&self) -> usize
pub fn proxy_send_buffer_size(&self) -> usize
pub fn connect_to_proxy_timeout(&self) -> u64
pub fn max_log_level(&self) -> &str
pub fn proxy_connection_read_timeout(&self) -> u64
pub fn proxy_connection_write_timeout(&self) -> u64
pub fn client_connection_read_timeout(&self) -> u64
pub fn client_connection_write_timeout(&self) -> u64
pub fn set_client_connection_read_timeout( &mut self, client_connection_read_timeout: u64, )
pub fn set_client_connection_write_timeout( &mut self, client_connection_write_timeout: u64, )
pub fn server_signal_tick_interval(&self) -> u64
pub fn set_server_signal_tick_interval( &mut self, server_signal_tick_interval: u64, )
Trait Implementations§
Source§impl Args for AgentServerConfig
impl Args for AgentServerConfig
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§impl Clone for AgentServerConfig
impl Clone for AgentServerConfig
Source§fn clone(&self) -> AgentServerConfig
fn clone(&self) -> AgentServerConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for AgentServerConfig
impl CommandFactory for AgentServerConfig
Source§impl Debug for AgentServerConfig
impl Debug for AgentServerConfig
Source§impl<'de> Deserialize<'de> for AgentServerConfig
impl<'de> Deserialize<'de> for AgentServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for AgentServerConfig
impl FromArgMatches for AgentServerConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for AgentServerConfig
impl Parser for AgentServerConfig
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl Freeze for AgentServerConfig
impl RefUnwindSafe for AgentServerConfig
impl Send for AgentServerConfig
impl Sync for AgentServerConfig
impl Unpin for AgentServerConfig
impl UnwindSafe for AgentServerConfig
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