MCPcopy Create free account
hub / github.com/PerroEngine/Perro / save_bytes_impl

Function save_bytes_impl

perro_source/api_modules/perro_web/src/storage.rs:80–85  ·  view source on GitHub ↗
(_: StorageScope, _: &str, _: &[u8])

Source from the content-addressed store, hash-verified

78
79#[cfg(not(target_arch = "wasm32"))]
80fn save_bytes_impl(_: StorageScope, _: &str, _: &[u8]) -> io::Result<()> {
81 Err(io::Error::new(
82 io::ErrorKind::Unsupported,
83 "web storage requires wasm32 target",
84 ))
85}
86
87#[cfg(not(target_arch = "wasm32"))]
88fn remove_impl(_: StorageScope, _: &str) -> io::Result<()> {

Callers 1

save_bytesFunction · 0.85

Calls 4

encode_valueFunction · 0.85
local_storageFunction · 0.85
session_storageFunction · 0.85
save_cookie_valueFunction · 0.85

Tested by

no test coverage detected