MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / status

Method status

libatomic/src/daemon/sandbox_grants.rs:213–221  ·  view source on GitHub ↗

The contract's error for this refusal.

(&self)

Source from the content-addressed store, hash-verified

211impl GrantError {
212 /// The contract's error for this refusal.
213 pub fn status(&self) -> Status {
214 let code = match self {
215 Self::Unknown | Self::Expired(_) => ErrorCode::Unauthorized,
216 Self::NoTokenForView(_) => ErrorCode::SandboxToken,
217 Self::InvalidTtl | Self::InvalidCapabilities(_) => ErrorCode::InvalidArgument,
218 Self::Store(_) => ErrorCode::Internal,
219 };
220 domain_status(code, self.to_string())
221 }
222}
223
224/// The deadline a TTL of `ttl_secs` from `now` means, or

Callers 15

callMethod · 0.45
switch_viewMethod · 0.45
open_sandboxMethod · 0.45
renew_sandboxMethod · 0.45
close_sandboxMethod · 0.45
publish_provenanceMethod · 0.45
submit_attestationMethod · 0.45
check_turn_scopeFunction · 0.45
reserve_turn_implFunction · 0.45
revalidateMethod · 0.45
sandbox_callerMethod · 0.45

Calls 1

domain_statusFunction · 0.85