pub struct Handlers {}Implementations§
Source§impl Handlers
impl Handlers
Sourcepub fn register_session_started(f: fn(String) -> HandlerResult<TelnetResult>)
pub fn register_session_started(f: fn(String) -> HandlerResult<TelnetResult>)
Register a function to receive session information when a user connects to the linked telnet provider
Sourcepub fn register_receive_text(
f: fn(String, String) -> HandlerResult<TelnetResult>,
)
pub fn register_receive_text( f: fn(String, String) -> HandlerResult<TelnetResult>, )
Register a function to handle text received from the linked telnet provider
Auto Trait Implementations§
impl Freeze for Handlers
impl RefUnwindSafe for Handlers
impl Send for Handlers
impl Sync for Handlers
impl Unpin for Handlers
impl UnwindSafe for Handlers
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