libcrun_context_s

Struct libcrun_context_s 

Source
#[repr(C)]
pub struct libcrun_context_s {
Show 20 fields pub state_root: *const c_char, pub id: *const c_char, pub bundle: *const c_char, pub console_socket: *const c_char, pub pid_file: *const c_char, pub notify_socket: *const c_char, pub handler: *const c_void, pub preserve_fds: i32, pub listen_fds: i32, pub output_handler: Option<unsafe extern "C" fn()>, pub output_handler_arg: *mut c_void, pub fifo_exec_wait_fd: i32, pub systemd_cgroup: bool, pub detach: bool, pub no_new_keyring: bool, pub force_no_cgroup: bool, pub no_pivot: bool, pub argv: *mut *mut c_char, pub argc: i32, pub handler_manager: *mut c_void,
}
Expand description

Stub context structure (non-functional).

Fields§

§state_root: *const c_char§id: *const c_char§bundle: *const c_char§console_socket: *const c_char§pid_file: *const c_char§notify_socket: *const c_char§handler: *const c_void§preserve_fds: i32§listen_fds: i32§output_handler: Option<unsafe extern "C" fn()>§output_handler_arg: *mut c_void§fifo_exec_wait_fd: i32§systemd_cgroup: bool§detach: bool§no_new_keyring: bool§force_no_cgroup: bool§no_pivot: bool§argv: *mut *mut c_char§argc: i32§handler_manager: *mut c_void

Trait Implementations§

Source§

impl Debug for libcrun_context_s

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for libcrun_context_s

Source§

fn default() -> libcrun_context_s

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.