Skip to main content

relay

Function relay 

Source
pub(crate) async fn relay(
    state: &AppState,
    req: &InjectionRequest,
    caller_uid: &str,
) -> Result<Option<Value>, String>
Expand description

Send req and its files through the relay: Ok(Some(answer)) once the relay queued it, Ok(None) when this instance has no relay or the relay didn’t take it (the caller holds or refuses), Err with why the files can’t go that way at all.