pub struct SingleConnSessionConf {
pub host_addrs: Vec<HostAddress>,
pub username: String,
pub password: String,
pub space: Option<String>,
pub buf_size: Option<usize>,
pub max_buf_size: Option<usize>,
pub max_parse_response_bytes_count: Option<u8>,
pub read_timeout: Option<u32>,
/* private fields */
}
Fields§
§host_addrs: Vec<HostAddress>
Set the host addresses of the graphd servers for load balancing
username: String
graphd’s username
password: String
graphd’s password
space: Option<String>
The dafault space after connecting.
§Notice
- If it’s set
None
, user has to executeUSE your_space_name;
manually before operating on a centain space. - If it’s set
Some(...)
, user can also switch space by executingUSE your_space_name;
manually.
buf_size: Option<usize>
Set fbthrift buf_size
max_buf_size: Option<usize>
Set fbthrift max_buf_size
max_parse_response_bytes_count: Option<u8>
Set fbthrift max_parse_response_bytes_count
read_timeout: Option<u32>
Set fbthrift read_timeout
Implementations§
source§impl SingleConnSessionConf
impl SingleConnSessionConf
pub fn new( host_addrs: Vec<HostAddress>, username: String, password: String, space: Option<String>, ) -> Self
pub fn set_buf_size(&mut self, size: usize)
pub fn set_max_buf_size(&mut self, size: usize)
pub fn set_max_parse_response_bytes_count(&mut self, size: u8)
pub fn set_read_timeout(&mut self, timeout_ms: u32)
source§impl SingleConnSessionConf
impl SingleConnSessionConf
pub fn get_next_addr(&self) -> HostAddress
Trait Implementations§
source§impl Clone for SingleConnSessionConf
impl Clone for SingleConnSessionConf
Auto Trait Implementations§
impl !Freeze for SingleConnSessionConf
impl RefUnwindSafe for SingleConnSessionConf
impl Send for SingleConnSessionConf
impl Sync for SingleConnSessionConf
impl Unpin for SingleConnSessionConf
impl UnwindSafe for SingleConnSessionConf
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)