pub struct ProviderCapabilities {Show 16 fields
pub source_modes: BTreeSet<SourceMode>,
pub ios_device_build: bool,
pub ios_simulator_build: bool,
pub signing_modes: BTreeSet<SigningMode>,
pub personal_team: bool,
pub live_events: bool,
pub live_logs: bool,
pub cancellation: bool,
pub artifact_types: BTreeSet<IosArtifactType>,
pub cache: bool,
pub max_source_bytes: Option<u64>,
pub retention_seconds: Option<u64>,
pub artifact_listing: bool,
pub artifact_download: bool,
pub cleanup: bool,
pub physical_device_access: bool,
}Expand description
Deterministic capability inventory returned during handshake and doctor.
Fields§
§source_modes: BTreeSet<SourceMode>Supported exact source modes.
ios_device_build: boolWhether physical-iPhone builds are implemented.
ios_simulator_build: boolWhether iOS Simulator builds are implemented.
signing_modes: BTreeSet<SigningMode>Supported signing strategies.
personal_team: boolWhether Apple Personal Team provisioning is supported.
live_events: boolWhether callers can retrieve incremental events.
live_logs: boolWhether the provider exposes live log events.
cancellation: boolWhether the provider can cancel an active job.
artifact_types: BTreeSet<IosArtifactType>Artifact types the provider can return.
cache: boolWhether provider-side compilation caches are enabled.
max_source_bytes: Option<u64>Maximum accepted source bytes, or no provider-advertised limit.
retention_seconds: Option<u64>Artifact retention window in seconds, or provider-defined retention.
artifact_listing: boolWhether artifact manifests can be enumerated after a job.
artifact_download: boolWhether verified artifact download is implemented.
cleanup: boolWhether explicit job cleanup is implemented.
physical_device_access: boolWhether a worker may access an attached physical device.
Implementations§
Source§impl ProviderCapabilities
impl ProviderCapabilities
Sourcepub fn supports(&self, feature: &ProviderFeature) -> bool
pub fn supports(&self, feature: &ProviderFeature) -> bool
Whether this inventory satisfies one exact feature.
Sourcepub fn require(
&self,
provider: impl Into<String>,
feature: ProviderFeature,
) -> RemoteBuildResult<()>
pub fn require( &self, provider: impl Into<String>, feature: ProviderFeature, ) -> RemoteBuildResult<()>
Return a typed error when a provider lacks one required feature.
§Errors
Returns RemoteBuildError::UnsupportedCapability when the feature is absent.
Trait Implementations§
Source§impl Clone for ProviderCapabilities
impl Clone for ProviderCapabilities
Source§impl Debug for ProviderCapabilities
impl Debug for ProviderCapabilities
Source§impl Default for ProviderCapabilities
impl Default for ProviderCapabilities
Source§impl<'de> Deserialize<'de> for ProviderCapabilities
impl<'de> Deserialize<'de> for ProviderCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ProviderCapabilities
Source§impl JsonSchema for ProviderCapabilities
impl JsonSchema for ProviderCapabilities
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ProviderCapabilities
impl PartialEq for ProviderCapabilities
Source§impl Serialize for ProviderCapabilities
impl Serialize for ProviderCapabilities
impl StructuralPartialEq for ProviderCapabilities
Auto Trait Implementations§
impl Freeze for ProviderCapabilities
impl RefUnwindSafe for ProviderCapabilities
impl Send for ProviderCapabilities
impl Sync for ProviderCapabilities
impl Unpin for ProviderCapabilities
impl UnsafeUnpin for ProviderCapabilities
impl UnwindSafe for ProviderCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.