mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-20 15:06:14 -05:00
21 lines
510 B
Rust
21 lines
510 B
Rust
use std::future::Future;
|
|
|
|
use gpapi::session::GatewaySessionSummary;
|
|
|
|
use super::ConnectHandler;
|
|
|
|
pub(super) struct InternalOutput;
|
|
|
|
impl InternalOutput {
|
|
pub(super) fn prepare(
|
|
_: &ConnectHandler<'_>,
|
|
_: &str,
|
|
) -> anyhow::Result<(Self, impl Fn(&GatewaySessionSummary) + Send + Sync + 'static + use<>)> {
|
|
Ok((Self, |_: &GatewaySessionSummary| {}))
|
|
}
|
|
|
|
pub(super) async fn run<T>(self, maintenance: impl Future<Output = T>) -> (T, anyhow::Result<()>) {
|
|
(maintenance.await, Ok(()))
|
|
}
|
|
}
|