Struct simics::api::interface::interfaces::OsaNodeTreeAdminInterface
source · pub struct OsaNodeTreeAdminInterface {
obj: *mut ConfObject,
interface: *mut osa_node_tree_admin_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut osa_node_tree_admin_interface
Implementations§
source§impl OsaNodeTreeAdminInterface
impl OsaNodeTreeAdminInterface
sourcepub fn begin(
&mut self,
initiator: *mut conf_object_t,
) -> Result<transaction_id_t>
pub fn begin( &mut self, initiator: *mut conf_object_t, ) -> Result<transaction_id_t>
Automatically generated method for the interface
sourcepub fn end(&mut self, transaction_id: transaction_id_t) -> Result<()>
pub fn end(&mut self, transaction_id: transaction_id_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn create(
&mut self,
mapper: *mut conf_object_t,
props: attr_value_t,
) -> Result<node_id_t>
pub fn create( &mut self, mapper: *mut conf_object_t, props: attr_value_t, ) -> Result<node_id_t>
Automatically generated method for the interface
sourcepub fn add(
&mut self,
parent_id: node_id_t,
props: attr_value_t,
) -> Result<node_id_t>
pub fn add( &mut self, parent_id: node_id_t, props: attr_value_t, ) -> Result<node_id_t>
Automatically generated method for the interface
sourcepub fn update(&mut self, node_id: node_id_t, props: attr_value_t) -> Result<()>
pub fn update(&mut self, node_id: node_id_t, props: attr_value_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn remove(&mut self, node_id: node_id_t) -> Result<()>
pub fn remove(&mut self, node_id: node_id_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn event(
&mut self,
node_id: node_id_t,
event_name: *const c_char,
event_data: attr_value_t,
) -> Result<()>
pub fn event( &mut self, node_id: node_id_t, event_name: *const c_char, event_data: attr_value_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn activate(
&mut self,
node_id: node_id_t,
cpu: *mut conf_object_t,
) -> Result<()>
pub fn activate( &mut self, node_id: node_id_t, cpu: *mut conf_object_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn deactivate(
&mut self,
node_id: node_id_t,
cpu: *mut conf_object_t,
) -> Result<()>
pub fn deactivate( &mut self, node_id: node_id_t, cpu: *mut conf_object_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn register_formatter(
&mut self,
node_id: node_id_t,
key: *const c_char,
recursive: bool,
formatter: Option<unsafe extern "C" fn(val: attr_value_t) -> attr_value_t>,
) -> Result<cancel_id_t>
pub fn register_formatter( &mut self, node_id: node_id_t, key: *const c_char, recursive: bool, formatter: Option<unsafe extern "C" fn(val: attr_value_t) -> attr_value_t>, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn unregister_formatter(&mut self, node_id: cancel_id_t) -> Result<()>
pub fn unregister_formatter(&mut self, node_id: cancel_id_t) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for OsaNodeTreeAdminInterface
impl Interface for OsaNodeTreeAdminInterface
source§const NAME: &'static [u8] = crate::api::sys::OSA_NODE_TREE_ADMIN_INTERFACE
const NAME: &'static [u8] = crate::api::sys::OSA_NODE_TREE_ADMIN_INTERFACE
The name of the interface
source§type InternalInterface = osa_node_tree_admin_interface
type InternalInterface = osa_node_tree_admin_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for OsaNodeTreeAdminInterface
impl RefUnwindSafe for OsaNodeTreeAdminInterface
impl !Send for OsaNodeTreeAdminInterface
impl !Sync for OsaNodeTreeAdminInterface
impl Unpin for OsaNodeTreeAdminInterface
impl UnwindSafe for OsaNodeTreeAdminInterface
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