pub struct LinuxSyscall;Expand description
Empty structure to implement Command trait for
Trait Implementations§
Source§impl Clone for LinuxSyscall
impl Clone for LinuxSyscall
Source§fn clone(&self) -> LinuxSyscall
fn clone(&self) -> LinuxSyscall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Syscall for LinuxSyscall
impl Syscall for LinuxSyscall
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
To enable dynamic typing, see https://doc.rust-lang.org/std/any/index.html for more information
Source§fn pivot_rootfs(&self, path: &Path) -> Result<(), SyscallError>
fn pivot_rootfs(&self, path: &Path) -> Result<(), SyscallError>
Function to set given path as root path inside process
Source§fn set_ns(&self, rawfd: i32, nstype: CloneFlags) -> Result<(), SyscallError>
fn set_ns(&self, rawfd: i32, nstype: CloneFlags) -> Result<(), SyscallError>
Set namespace for process
Disassociate parts of execution context
Source§fn set_capability(
&self,
cset: CapSet,
value: &CapsHashSet,
) -> Result<(), SyscallError>
fn set_capability( &self, cset: CapSet, value: &CapsHashSet, ) -> Result<(), SyscallError>
Set capabilities for container process
Source§fn set_hostname(&self, hostname: &str) -> Result<(), SyscallError>
fn set_hostname(&self, hostname: &str) -> Result<(), SyscallError>
Sets hostname for process
Source§fn set_domainname(&self, domainname: &str) -> Result<(), SyscallError>
fn set_domainname(&self, domainname: &str) -> Result<(), SyscallError>
Sets domainname for process (see setdomainname(2)).
Source§fn set_rlimit(&self, rlimit: &PosixRlimit) -> Result<(), SyscallError>
fn set_rlimit(&self, rlimit: &PosixRlimit) -> Result<(), SyscallError>
Sets resource limit for process
fn get_pwuid(&self, uid: uid_t) -> Option<Arc<OsStr>>
fn chroot(&self, path: &Path) -> Result<(), SyscallError>
fn mount( &self, source: Option<&Path>, target: &Path, fstype: Option<&str>, flags: MsFlags, data: Option<&str>, ) -> Result<(), SyscallError>
fn mount_from_fd( &self, source_fd: &OwnedFd, target: &Path, ) -> Result<(), SyscallError>
fn move_mount( &self, from_dirfd: BorrowedFd<'_>, from_path: Option<&str>, to_dirfd: BorrowedFd<'_>, to_path: Option<&str>, flags: u32, ) -> Result<(), SyscallError>
fn fsopen( &self, fstype: Option<&str>, flags: u32, ) -> Result<OwnedFd, SyscallError>
fn fsconfig( &self, fsfd: BorrowedFd<'_>, cmd: u32, key: Option<&str>, val: Option<&str>, aux: c_int, ) -> Result<(), SyscallError>
fn fsmount( &self, fsfd: BorrowedFd<'_>, flags: u32, attr_flags: Option<u64>, ) -> Result<OwnedFd, SyscallError>
fn open_tree( &self, dirfd: RawFd, path: Option<&str>, flags: u32, ) -> Result<OwnedFd, SyscallError>
fn symlink(&self, original: &Path, link: &Path) -> Result<(), SyscallError>
fn mknod( &self, path: &Path, kind: SFlag, perm: Mode, dev: u64, ) -> Result<(), SyscallError>
fn chown( &self, path: &Path, owner: Option<Uid>, group: Option<Gid>, ) -> Result<(), SyscallError>
fn set_groups(&self, groups: &[Gid]) -> Result<(), SyscallError>
fn close_range(&self, preserve_fds: i32) -> Result<(), SyscallError>
fn mount_setattr( &self, dirfd: BorrowedFd<'_>, pathname: &Path, flags: u32, mount_attr: &MountAttr, size: size_t, ) -> Result<(), SyscallError>
fn set_io_priority(&self, class: i64, priority: i64) -> Result<(), SyscallError>
fn set_mempolicy( &self, mode: i32, nodemask: &[c_ulong], maxnode: u64, ) -> Result<(), SyscallError>
fn umount2(&self, target: &Path, flags: MntFlags) -> Result<(), SyscallError>
fn get_uid(&self) -> Uid
fn get_gid(&self) -> Gid
fn get_euid(&self) -> Uid
fn get_egid(&self) -> Gid
fn personality(&self, domain: PersonalityDomain) -> Result<(), SyscallError>
Auto Trait Implementations§
impl Freeze for LinuxSyscall
impl RefUnwindSafe for LinuxSyscall
impl Send for LinuxSyscall
impl Sync for LinuxSyscall
impl Unpin for LinuxSyscall
impl UnsafeUnpin for LinuxSyscall
impl UnwindSafe for LinuxSyscall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more