Skip to main content

serve

Function serve 

Source
pub fn serve<C: LysDeliberateConsumer>(
    services: &Services<'_>,
    consumer: Option<&C>,
    pass: &AdmittedLysPass<C::Pass>,
    network_id: &str,
    subject: &str,
    request: &ServiceRequest<'_>,
    now: u64,
) -> Result<ServiceOutcome, ServiceRefusal>
Expand description

Serves subject for the holder of pass, its effect made under request’s operation with its payload.

consumer is the live Lys seam; None means no seam is installed, which refuses every deliberate subject as deliberate_unavailable and, having no pass consumer either, every hot one too. Nothing here falls back from deliberate to hot.

§Errors

The refusal, by name.