pub struct RunnerAccount {
pub uid: u32,
pub gid: u32,
}Expand description
A resolved account: what a runner is started as and what its directories are handed to.
Fields§
§uid: u32The account’s user id.
gid: u32Its primary group id.
Implementations§
Source§impl RunnerAccount
impl RunnerAccount
Sourcepub fn give_tree(&self, path: &Path) -> Result<()>
pub fn give_tree(&self, path: &Path) -> Result<()>
Hands path and everything under it to this account.
Links are handed over themselves and never followed, so a link a
previous job left pointing outside the tree cannot carry the change
anywhere else. Below path, a directory the account already owns is
not entered: only the account writes inside one, so nothing there needs
handing over, and a retained _work or an already handed package is
not walked again.
§Errors
The first error met, after which the rest of the tree is not visited.
Trait Implementations§
Source§impl Clone for RunnerAccount
impl Clone for RunnerAccount
impl Copy for RunnerAccount
Source§impl Debug for RunnerAccount
impl Debug for RunnerAccount
impl Eq for RunnerAccount
Source§impl PartialEq for RunnerAccount
impl PartialEq for RunnerAccount
impl StructuralPartialEq for RunnerAccount
Auto Trait Implementations§
impl Forget for RunnerAccount
impl Freeze for RunnerAccount
impl Move for RunnerAccount
impl RefUnwindSafe for RunnerAccount
impl Send for RunnerAccount
impl Sync for RunnerAccount
impl Unpin for RunnerAccount
impl UnsafeUnpin for RunnerAccount
impl UnwindSafe for RunnerAccount
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