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

Method from_fetch

atomic-remote/src/http/identity.rs:91–99  ·  view source on GitHub ↗
(fetched: RemoteResult<IdentityFetch>)

Source from the content-addressed store, hash-verified

89
90impl ConflictRemote {
91 fn from_fetch(fetched: RemoteResult<IdentityFetch>) -> Self {
92 match fetched {
93 Ok(IdentityFetch::Bound(identity)) => Self::Bound(identity),
94 Ok(IdentityFetch::Unbound) => Self::Unbound,
95 // A pre-transport ping or any transport trouble leaves the
96 // binding unreadable.
97 Ok(IdentityFetch::Unsupported) | Err(_) => Self::Unknown,
98 }
99 }
100}
101
102/// The result of offering the local identity to a remote.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected