Struct lxc_sys::lxc_container [−][src]
Fields
name: *mut c_char
configfile: *mut c_char
pidfile: *mut c_char
slock: *mut lxc_lock
privlock: *mut lxc_lock
numthreads: c_int
lxc_conf: *mut lxc_conf
error_string: *mut c_char
error_num: c_int
daemonize: bool
config_path: *mut c_char
is_defined: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
state: Option<unsafe extern "C" fn(c: *mut lxc_container) -> *const c_char>
is_running: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
freeze: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
unfreeze: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
init_pid: Option<unsafe extern "C" fn(c: *mut lxc_container) -> pid_t>
load_config: Option<unsafe extern "C" fn(c: *mut lxc_container, alt_file: *const c_char) -> bool>
start: Option<unsafe extern "C" fn(c: *mut lxc_container, useinit: c_int, argv: *const *mut c_char) -> bool>
startl: Option<unsafe extern "C" fn(c: *mut lxc_container, useinit: c_int, ...) -> bool>
stop: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
want_daemonize: Option<unsafe extern "C" fn(c: *mut lxc_container, state: bool) -> bool>
want_close_all_fds: Option<unsafe extern "C" fn(c: *mut lxc_container, state: bool) -> bool>
config_file_name: Option<unsafe extern "C" fn(c: *mut lxc_container) -> *mut c_char>
wait: Option<unsafe extern "C" fn(c: *mut lxc_container, state: *const c_char, timeout: c_int) -> bool>
set_config_item: Option<unsafe extern "C" fn(c: *mut lxc_container, key: *const c_char, value: *const c_char) -> bool>
destroy: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
save_config: Option<unsafe extern "C" fn(c: *mut lxc_container, alt_file: *const c_char) -> bool>
create: Option<unsafe extern "C" fn(c: *mut lxc_container, t: *const c_char, bdevtype: *const c_char, specs: *mut bdev_specs, flags: c_int, argv: *const *mut c_char) -> bool>
createl: Option<unsafe extern "C" fn(c: *mut lxc_container, t: *const c_char, bdevtype: *const c_char, specs: *mut bdev_specs, flags: c_int, ...) -> bool>
rename: Option<unsafe extern "C" fn(c: *mut lxc_container, newname: *const c_char) -> bool>
reboot: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
shutdown: Option<unsafe extern "C" fn(c: *mut lxc_container, timeout: c_int) -> bool>
clear_config: Option<unsafe extern "C" fn(c: *mut lxc_container)>
clear_config_item: Option<unsafe extern "C" fn(c: *mut lxc_container, key: *const c_char) -> bool>
get_config_item: Option<unsafe extern "C" fn(c: *mut lxc_container, key: *const c_char, retv: *mut c_char, inlen: c_int) -> c_int>
get_running_config_item: Option<unsafe extern "C" fn(c: *mut lxc_container, key: *const c_char) -> *mut c_char>
get_keys: Option<unsafe extern "C" fn(c: *mut lxc_container, key: *const c_char, retv: *mut c_char, inlen: c_int) -> c_int>
get_interfaces: Option<unsafe extern "C" fn(c: *mut lxc_container) -> *mut *mut c_char>
get_ips: Option<unsafe extern "C" fn(c: *mut lxc_container, interface: *const c_char, family: *const c_char, scope: c_int) -> *mut *mut c_char>
get_cgroup_item: Option<unsafe extern "C" fn(c: *mut lxc_container, subsys: *const c_char, retv: *mut c_char, inlen: c_int) -> c_int>
set_cgroup_item: Option<unsafe extern "C" fn(c: *mut lxc_container, subsys: *const c_char, value: *const c_char) -> bool>
get_config_path: Option<unsafe extern "C" fn(c: *mut lxc_container) -> *const c_char>
set_config_path: Option<unsafe extern "C" fn(c: *mut lxc_container, path: *const c_char) -> bool>
clone: Option<unsafe extern "C" fn(c: *mut lxc_container, newname: *const c_char, lxcpath: *const c_char, flags: c_int, bdevtype: *const c_char, bdevdata: *const c_char, newsize: u64, hookargs: *mut *mut c_char) -> *mut lxc_container>
console_getfd: Option<unsafe extern "C" fn(c: *mut lxc_container, ttynum: *mut c_int, masterfd: *mut c_int) -> c_int>
console: Option<unsafe extern "C" fn(c: *mut lxc_container, ttynum: c_int, stdinfd: c_int, stdoutfd: c_int, stderrfd: c_int, escape: c_int) -> c_int>
attach: Option<unsafe extern "C" fn(c: *mut lxc_container, exec_function: lxc_attach_exec_t, exec_payload: *mut c_void, options: *mut lxc_attach_options_t, attached_process: *mut pid_t) -> c_int>
attach_run_wait: Option<unsafe extern "C" fn(c: *mut lxc_container, options: *mut lxc_attach_options_t, program: *const c_char, argv: *const *const c_char) -> c_int>
attach_run_waitl: Option<unsafe extern "C" fn(c: *mut lxc_container, options: *mut lxc_attach_options_t, program: *const c_char, arg: *const c_char, ...) -> c_int>
snapshot: Option<unsafe extern "C" fn(c: *mut lxc_container, commentfile: *const c_char) -> c_int>
snapshot_list: Option<unsafe extern "C" fn(c: *mut lxc_container, snapshots: *mut *mut lxc_snapshot) -> c_int>
snapshot_restore: Option<unsafe extern "C" fn(c: *mut lxc_container, snapname: *const c_char, newname: *const c_char) -> bool>
snapshot_destroy: Option<unsafe extern "C" fn(c: *mut lxc_container, snapname: *const c_char) -> bool>
may_control: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
add_device_node: Option<unsafe extern "C" fn(c: *mut lxc_container, src_path: *const c_char, dest_path: *const c_char) -> bool>
remove_device_node: Option<unsafe extern "C" fn(c: *mut lxc_container, src_path: *const c_char, dest_path: *const c_char) -> bool>
attach_interface: Option<unsafe extern "C" fn(c: *mut lxc_container, dev: *const c_char, dst_dev: *const c_char) -> bool>
detach_interface: Option<unsafe extern "C" fn(c: *mut lxc_container, dev: *const c_char, dst_dev: *const c_char) -> bool>
checkpoint: Option<unsafe extern "C" fn(c: *mut lxc_container, directory: *mut c_char, stop: bool, verbose: bool) -> bool>
restore: Option<unsafe extern "C" fn(c: *mut lxc_container, directory: *mut c_char, verbose: bool) -> bool>
destroy_with_snapshots: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
snapshot_destroy_all: Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>
migrate: Option<unsafe extern "C" fn(c: *mut lxc_container, cmd: c_uint, opts: *mut migrate_opts, size: c_uint) -> c_int>
console_log: Option<unsafe extern "C" fn(c: *mut lxc_container, log: *mut lxc_console_log) -> c_int>
reboot2: Option<unsafe extern "C" fn(c: *mut lxc_container, timeout: c_int) -> bool>
mount: Option<unsafe extern "C" fn(c: *mut lxc_container, source: *const c_char, target: *const c_char, filesystemtype: *const c_char, mountflags: c_ulong, data: *const c_void, mnt: *mut lxc_mount) -> c_int>
umount: Option<unsafe extern "C" fn(c: *mut lxc_container, target: *const c_char, mountflags: c_ulong, mnt: *mut lxc_mount) -> c_int>
seccomp_notify_fd: Option<unsafe extern "C" fn(c: *mut lxc_container) -> c_int>
init_pidfd: Option<unsafe extern "C" fn(c: *mut lxc_container) -> c_int>
Trait Implementations
impl Clone for lxc_container
[src]
fn clone(&self) -> lxc_container
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for lxc_container
[src]
impl Debug for lxc_container
[src]
Auto Trait Implementations
impl RefUnwindSafe for lxc_container
[src]
impl !Send for lxc_container
[src]
impl !Sync for lxc_container
[src]
impl Unpin for lxc_container
[src]
impl UnwindSafe for lxc_container
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,