pub struct CommandManagerBuilder { /* private fields */ }
Implementations§
Source§impl CommandManagerBuilder
impl CommandManagerBuilder
pub fn new() -> Self
Sourcepub fn management_url(
&mut self,
management_url: &str,
) -> &mut CommandManagerBuilder
pub fn management_url( &mut self, management_url: &str, ) -> &mut CommandManagerBuilder
the url for the openvpn server’s management interface (e.g. 127.0.0.1:5555)
Sourcepub fn connect_timeout(
&mut self,
connect_timeout: Option<Duration>,
) -> &mut CommandManagerBuilder
pub fn connect_timeout( &mut self, connect_timeout: Option<Duration>, ) -> &mut CommandManagerBuilder
the TCP connection timeout. Default value is no connection timeout (None
)
Sourcepub fn read_timeout(
&mut self,
read_timeout: Option<Duration>,
) -> &mut CommandManagerBuilder
pub fn read_timeout( &mut self, read_timeout: Option<Duration>, ) -> &mut CommandManagerBuilder
the read timeout for responses from the server. Default value is no read timeout (None
)
Sourcepub fn build(&mut self) -> Result<CommandManager>
pub fn build(&mut self) -> Result<CommandManager>
builds the connection manager. Returns an error if the management url is malformed or does not resolve
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandManagerBuilder
impl RefUnwindSafe for CommandManagerBuilder
impl Send for CommandManagerBuilder
impl Sync for CommandManagerBuilder
impl Unpin for CommandManagerBuilder
impl UnwindSafe for CommandManagerBuilder
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