/ firmware / src / services / ssh / mod.rs
mod.rs
 1  //! SSH transport and terminal handling for Microvisor.
 2  //!
 3  //! SSH implementation based on [ZSSH](https://github.com/TomCrypto/zssh)
 4  //! by Thomas Bénéteau (MIT license).
 5  //!
 6  //! Terminal handling from [nostd-interactive-terminal](https://github.com/Hahihula/nostd-interactive-terminal)
 7  //! by Petr Gadorek (MIT/Apache-2.0 license).
 8  
 9  mod channel;
10  mod codec;
11  mod error;
12  pub mod history;
13  pub mod parser;
14  pub mod terminal;
15  mod transport;
16  mod types;
17  mod wire;
18  pub mod writer;
19  
20  pub use channel::{Channel, Pipe};
21  pub use error::{Error, ProtocolError};
22  pub use transport::Transport;
23  pub use types::{AuthMethod, Behavior, PublicKey, Request, SecretKey, TransportError};
24  pub use wire::DisconnectReason;
25  
26  fn unwrap_unreachable<T>(value: Option<T>) -> T {
27      value.unwrap_or_else(|| unreachable!())
28  }