Skip to main content

handle_random_image

Function handle_random_image 

Source
pub async fn handle_random_image(
    state: Arc<RwLock<ServerState>>,
) -> Result<Response<Full<Bytes>>>
Expand description

Handle random image serving

ยงErrors

Returns an error if no images are configured or if the image cannot be found in the cache.