pub enum AgentPlatform {
WindowsX86_64,
WindowsAarch64,
LinuxX86_64,
LinuxAarch64,
MacOSX86_64,
MacOSAarch64,
}Expand description
The platform an uploaded agent binary runs on.
Variants§
Implementations§
Source§impl AgentPlatform
impl AgentPlatform
Sourcepub fn detect(bytes: &[u8]) -> Result<AgentPlatform, String>
pub fn detect(bytes: &[u8]) -> Result<AgentPlatform, String>
Identify the platform from the binary’s leading bytes. Errors (rather than guesses) on universal / 32-bit Mach-O, on a recognized container with an unsupported architecture, and on anything unrecognized — a publish that can’t name its platform must not silently land on the Windows key.
Sourcepub fn release_key(&self, version: &str) -> String
pub fn release_key(&self, version: &str) -> String
The agent_releases Object Store key for version on this
platform. Windows → the bare version (full backward compatibility);
Linux / macOS → the arch-suffixed key.
Trait Implementations§
Source§impl Clone for AgentPlatform
impl Clone for AgentPlatform
impl Copy for AgentPlatform
Source§impl Debug for AgentPlatform
impl Debug for AgentPlatform
impl Eq for AgentPlatform
Source§impl PartialEq for AgentPlatform
impl PartialEq for AgentPlatform
impl StructuralPartialEq for AgentPlatform
Auto Trait Implementations§
impl Freeze for AgentPlatform
impl RefUnwindSafe for AgentPlatform
impl Send for AgentPlatform
impl Sync for AgentPlatform
impl Unpin for AgentPlatform
impl UnsafeUnpin for AgentPlatform
impl UnwindSafe for AgentPlatform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.