pub struct Host { /* private fields */ }Implementations§
Source§impl Host
impl Host
Sourcepub fn send_text(
&self,
session: String,
text: String,
) -> HandlerResult<TelnetResult>
pub fn send_text( &self, session: String, text: String, ) -> HandlerResult<TelnetResult>
Sends a string of text to a given session. The provider is not responsible for indicating if this is a valid session or not. The telnet provider will not automatically add newlines or carriage returns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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