Struct busyrpc::ClientOptions
source · pub struct ClientOptions {
pub channels: usize,
pub ssl_verify_none: bool,
pub user_send_buffer_size: usize,
}
Expand description
BusyRPC client options.
Fields§
§channels: usize
The number of channels to establish.
ssl_verify_none: bool
Disable SSL verification.
user_send_buffer_size: usize
The user send-buffer size.
Implementations§
source§impl ClientOptions
impl ClientOptions
sourcepub fn with_channels(self, channels: usize) -> Self
pub fn with_channels(self, channels: usize) -> Self
Set the number of channels to open in parallel.
sourcepub fn with_user_send_buffer(self, user_send_buffer_size: usize) -> Self
pub fn with_user_send_buffer(self, user_send_buffer_size: usize) -> Self
Set the user_send_buffer.
Trait Implementations§
source§impl Clone for ClientOptions
impl Clone for ClientOptions
source§fn clone(&self) -> ClientOptions
fn clone(&self) -> ClientOptions
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 CommandLine for ClientOptions
impl CommandLine for ClientOptions
source§fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
Add options to the getopts parser.
source§fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
Assign values to self using the provided getopts matches.
source§fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
Return the canonical command line for this CommandLine.
source§fn from_command_line(usage: &str) -> (Self, Vec<String>)
fn from_command_line(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will panic if a non-canonical command line is
provided.
source§fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will allow a non-canonical command line to
execute.
source§fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
Parse from the provided arguments. This function will panic if a non-canonical command
line is provided.
source§impl Debug for ClientOptions
impl Debug for ClientOptions
source§impl Default for ClientOptions
impl Default for ClientOptions
source§impl PartialEq for ClientOptions
impl PartialEq for ClientOptions
source§fn eq(&self, other: &ClientOptions) -> bool
fn eq(&self, other: &ClientOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ClientOptions
impl StructuralPartialEq for ClientOptions
Auto Trait Implementations§
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnwindSafe for ClientOptions
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