pub struct SBPlatform {
    pub raw: SBPlatformRef,
}
Expand description

A platform that can represent the current host or a remote host debug platform.

The SBPlatform class represents the current host, or a remote host. It can be connected to a remote platform in order to provide ways to remotely launch and attach to processes, upload/download files, create directories, run remote shell commands, find locally cached versions of files from the remote system, and much more.

SBPlatform objects can be created and then used to connect to a remote platform which allows the SBPlatform to be used to get a list of the current processes on the remote host, attach to one of those processes, install programs on the remote system, attach and launch processes, and much more.

Every SBTarget has a corresponding SBPlatform. The platform can be specified upon target creation, or the currently selected platform will attempt to be used when creating the target automatically as long as the currently selected platform matches the target architecture and executable type. If the architecture or executable type do not match, a suitable platform will be found automatically.

Fields

raw: SBPlatformRef

The underlying raw SBPlatformRef.

Implementations

Check whether or not this is a valid SBPlatform value.

The working directory for this platform.

The name of the platform.

When debugging on the host platform, this would be "host".

The triple used to describe this platform.

An example value might be "x86_64-apple-macosx".

The hostname for this platform.

The build ID for the platforms’ OS version.

The long form description of the platform’s OS version.

On macOS, this might look like "Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64".

The major component of the platform’s OS version.

On macOS 10.15.4, this would have the value 10.

The minor component of the platform’s OS version.

On macOS 10.15.4, this would have the value 15.

The patch or update component of the platform’s OS version.

On macOS 10.15.4, this would have the value 4.

Launch a process. This is not for debugging that process.

Kill a process.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.