use std::sync::Arc;
use tokio_util::sync::CancellationToken;
use super::ControlServer;
use crate::ControlError;
use crate::endpoint::ControlEndpoint;
pub struct EndpointGuard;
pub(super) fn bind(_endpoint: &ControlEndpoint) -> Result<Option<EndpointGuard>, ControlError> {
Err(ControlError::Unsupported)
}
pub(super) fn bind_project(
_endpoint: &ControlEndpoint,
_config_path: &crate::CanonicalConfigPath,
) -> Result<Option<EndpointGuard>, ControlError> {
Err(ControlError::Unsupported)
}
pub(super) fn endpoint_owner_lock_held(_endpoint: &ControlEndpoint) -> Result<bool, ControlError> {
Err(ControlError::Unsupported)
}
#[expect(
clippy::unused_async,
reason = "the platform serve function is async on Unix and awaited by the shared server API"
)]
pub(super) async fn serve(
_server: Arc<ControlServer>,
_guard: EndpointGuard,
_shutdown: CancellationToken,
) -> Result<(), ControlError> {
Err(ControlError::Unsupported)
}