pub struct TelnetBuilder { /* private fields */ }Implementations§
Source§impl TelnetBuilder
impl TelnetBuilder
Sourcepub fn prompt<T: ToString>(self, prompt: T) -> TelnetBuilder
pub fn prompt<T: ToString>(self, prompt: T) -> TelnetBuilder
Set the telnet server prompt, as many characters as possible.(~ or # is not good. May misjudge).
Sourcepub fn prompts<T: ToString>(self, prompts: &[T]) -> TelnetBuilder
pub fn prompts<T: ToString>(self, prompts: &[T]) -> TelnetBuilder
Set the telnet server prompts, as many characters as possible.(~ or # is not good. May misjudge).
If prompts is set, prompt will be overwritten.
Sourcepub fn login_prompt(self, user_prompt: &str, pass_prompt: &str) -> TelnetBuilder
pub fn login_prompt(self, user_prompt: &str, pass_prompt: &str) -> TelnetBuilder
Login prompt, the common ones are login: and Password: or Username: and Password:.
Sourcepub fn connect_timeout(self, connect_timeout: Duration) -> TelnetBuilder
pub fn connect_timeout(self, connect_timeout: Duration) -> TelnetBuilder
Set the timeout for TcpStream connect remote addr.
Sourcepub fn timeout(self, timeout: Duration) -> TelnetBuilder
pub fn timeout(self, timeout: Duration) -> TelnetBuilder
Set the timeout for the operation.
Trait Implementations§
Source§impl Debug for TelnetBuilder
impl Debug for TelnetBuilder
Source§impl Default for TelnetBuilder
impl Default for TelnetBuilder
Source§fn default() -> TelnetBuilder
fn default() -> TelnetBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TelnetBuilder
impl RefUnwindSafe for TelnetBuilder
impl Send for TelnetBuilder
impl Sync for TelnetBuilder
impl Unpin for TelnetBuilder
impl UnwindSafe for TelnetBuilder
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