Struct simics::api::interface::interfaces::ExternalConnectionCtlInterface
source · pub struct ExternalConnectionCtlInterface {
obj: *mut ConfObject,
interface: *mut external_connection_ctl_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut external_connection_ctl_interface
Implementations§
source§impl ExternalConnectionCtlInterface
impl ExternalConnectionCtlInterface
sourcepub fn accept(
&mut self,
id: uint64,
cookie: *mut lang_void,
blocking_read: bool,
) -> Result<()>
pub fn accept( &mut self, id: uint64, cookie: *mut lang_void, blocking_read: bool, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn read(
&mut self,
cookie: *mut lang_void,
buffer: buffer_t,
) -> Result<isize>
pub fn read( &mut self, cookie: *mut lang_void, buffer: buffer_t, ) -> Result<isize>
Automatically generated method for the interface
sourcepub fn write(&mut self, cookie: *mut lang_void, bytes: bytes_t) -> Result<isize>
pub fn write(&mut self, cookie: *mut lang_void, bytes: bytes_t) -> Result<isize>
Automatically generated method for the interface
sourcepub fn write_async(
&mut self,
cookie: *mut lang_void,
bytes: bytes_t,
) -> Result<()>
pub fn write_async( &mut self, cookie: *mut lang_void, bytes: bytes_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn has_error(&mut self, cookie: *mut lang_void) -> Result<bool>
pub fn has_error(&mut self, cookie: *mut lang_void) -> Result<bool>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for ExternalConnectionCtlInterface
impl Interface for ExternalConnectionCtlInterface
source§const NAME: &'static [u8] = crate::api::sys::EXTERNAL_CONNECTION_CTL_INTERFACE
const NAME: &'static [u8] = crate::api::sys::EXTERNAL_CONNECTION_CTL_INTERFACE
The name of the interface
source§type InternalInterface = external_connection_ctl_interface
type InternalInterface = external_connection_ctl_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 ExternalConnectionCtlInterface
impl RefUnwindSafe for ExternalConnectionCtlInterface
impl !Send for ExternalConnectionCtlInterface
impl !Sync for ExternalConnectionCtlInterface
impl Unpin for ExternalConnectionCtlInterface
impl UnwindSafe for ExternalConnectionCtlInterface
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