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

Method fmt

libatomic/src/daemon/sandbox_grants.rs:194–206  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

192
193impl std::fmt::Display for GrantError {
194 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
195 match self {
196 Self::Unknown => write!(f, "unknown or revoked sandbox token"),
197 Self::Expired(at) => write!(f, "sandbox token expired at {}", at.to_rfc3339()),
198 Self::NoTokenForView(view) => write!(f, "no live sandbox token for view '{view}'"),
199 Self::InvalidTtl => write!(
200 f,
201 "a sandbox token must last between {MIN_TTL_SECS} and {MAX_TTL_SECS} seconds"
202 ),
203 Self::InvalidCapabilities(why) => write!(f, "invalid sandbox capabilities: {why}"),
204 Self::Store(why) => write!(f, "sandbox grant store: {why}"),
205 }
206 }
207}
208
209impl std::error::Error for GrantError {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected