Telnet Server wasmCloud Actor Interface

This crate provides an abstraction over the wasmcloud:telnet contract. This allows actors to be notified when a new telnet session has started and when text has been received on a given session. Actors can also emit text to a specific session, which ultimately correlates to an individual connected socket client.

Example:

```rust extern crate wasmcloudactortelnet as telnet; extern crate wasmcloudactorcore as actorcore; use wapc_guest::HandlerResult;

[no_mangle]

pub fn wapcinit() { telnet::Handlers::registersessionstarted(sessionstarted); telnet::Handlers::registerreceivetext(receivetext); actorcore::Handlers::registerhealth_request(health); }

fn sessionstarted(session: String) -> HandlerResult { let _ = telnet::default().sendtext(session, "Welcome to the Interwebs!\n".tostring()); Ok(true) } fn receivetext(session: String, text: String) -> HandlerResult { let _ = telnet::default().send_text(session, format!("Echo: {}\n", text)); Ok(true) }

fn health(_h: core::HealthCheckRequest) -> HandlerResult { Ok(core::HealthCheckResponse::healthy()) } ```