mirror of https://github.com/chipsenkbeil/distant
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
546 B
Rust
16 lines
546 B
Rust
mod api;
|
|
mod constants;
|
|
pub use api::LocalDistantApi;
|
|
use distant_core::{DistantApi, DistantApiServerHandler};
|
|
|
|
/// Implementation of [`DistantApiServerHandler`] using [`LocalDistantApi`].
|
|
pub type LocalDistantApiServerHandler =
|
|
DistantApiServerHandler<LocalDistantApi, <LocalDistantApi as DistantApi>::LocalData>;
|
|
|
|
/// Initializes a new [`LocalDistantApiServerHandler`].
|
|
pub fn initialize_handler() -> std::io::Result<LocalDistantApiServerHandler> {
|
|
Ok(LocalDistantApiServerHandler::new(
|
|
LocalDistantApi::initialize()?,
|
|
))
|
|
}
|