Scenic.Assets.Static.load

You're seeing just the function load, go back to Scenic.Assets.Static module for more information.

Specs

load(id :: String.t() | atom() | binary()) ::
  {:ok, data :: binary()} | {:error, :not_found} | {:error, :hash_failed}

Load the binary contents of an asset given it's id or hash.

Return is in the form of {:ok, bin}

If the asset is not in the library, {:error, :not_found} is returned.

The contents of the file will be hashed and compared against the hash found in the library. If this test fails, {:error, :hash_failed} is returned.