pub struct Telnet {
pub term_type: String,
/* private fields */
}Fields§
§term_type: StringImplementations§
Source§impl Telnet
impl Telnet
pub fn new(term_type: &str, cols: u16, rows: u16) -> Self
Sourcepub fn remote_echo(&self) -> bool
pub fn remote_echo(&self) -> bool
Whether the server has agreed to echo our input.
Sourcepub fn receive(&mut self, input: &[u8], data: &mut Vec<u8>, reply: &mut Vec<u8>)
pub fn receive(&mut self, input: &[u8], data: &mut Vec<u8>, reply: &mut Vec<u8>)
Process bytes from the network. Application data is appended to
data; protocol replies to send back are appended to reply.
Auto Trait Implementations§
impl Freeze for Telnet
impl RefUnwindSafe for Telnet
impl Send for Telnet
impl Sync for Telnet
impl Unpin for Telnet
impl UnsafeUnpin for Telnet
impl UnwindSafe for Telnet
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