pub struct Profile {
pub image_stage: String,
pub cpus: u32,
pub memory: ByteSize,
pub slots: u32,
}Expand description
An image stage with its limits; every job of the profile gets one container with these limits.
Fields§
§image_stage: StringThe stage of image/Dockerfile; runners run the image runnerd-runner:<image_stage>.
cpus: u32CPUs per slot.
memory: ByteSizeMemory per slot; the container’s hard limit.
slots: u32The most jobs of this profile running at once.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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