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)
}
#[expect(
clippy::unnecessary_wraps,
reason = "keeps one signature with the Unix implementation, whose claim can fail"
)]
pub(super) fn claim_project(
_config_path: &crate::CanonicalConfigPath,
) -> Result<super::ProjectClaim, super::ClaimError> {
Ok(super::ProjectClaim { lock: None })
}
pub(super) fn bind_project(
_endpoint: &ControlEndpoint,
_claim: &super::ProjectClaim,
) -> 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)
}