Struct monitor_api::SharedCompConfig
source · #[repr(C)]pub struct SharedCompConfig {
pub sctx: ObjID,
pub root_library_id: Option<LibraryId>,
/* private fields */
}
Expand description
Shared data between the monitor and a compartment runtime. Written to by the monitor, and read-only from the compartment.
Fields§
§sctx: ObjID
The security context that this compartment derives from. Read-only, will not be overwritten.
root_library_id: Option<LibraryId>
The root library ID for this compartment. May be None if no libraries have been loaded.
Implementations§
pub fn new(sctx: ObjID, tls_template: *mut TlsTemplateInfo) -> Self
sourcepub fn set_tls_template(&self, ptr: *mut TlsTemplateInfo)
pub fn set_tls_template(&self, ptr: *mut TlsTemplateInfo)
Set the current TLS template for a compartment. Only the monitor can call this.
sourcepub fn get_tls_template(&self) -> *const TlsTemplateInfo
pub fn get_tls_template(&self) -> *const TlsTemplateInfo
Get the current TLS template for the compartment.
Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more