pub struct CallbackSubObject { /* private fields */ }Expand description
A handler-backed sub-object for runtime registered implementation
Implementations§
Source§impl CallbackSubObject
impl CallbackSubObject
Sourcepub fn register_handler(&self, handler: &'static dyn SubObjectAccess)
pub fn register_handler(&self, handler: &'static dyn SubObjectAccess)
Register a handler for this sub object
Trait Implementations§
Source§impl Default for CallbackSubObject
impl Default for CallbackSubObject
Source§impl SubObjectAccess for CallbackSubObject
impl SubObjectAccess for CallbackSubObject
Source§fn read(&self, offset: usize, buf: &mut [u8]) -> Result<usize, AbortCode>
fn read(&self, offset: usize, buf: &mut [u8]) -> Result<usize, AbortCode>
Read data from the sub object Read more
Source§fn begin_partial(&self) -> Result<(), AbortCode>
fn begin_partial(&self) -> Result<(), AbortCode>
Begin a multi-part write to the object Read more
Auto Trait Implementations§
impl !Freeze for CallbackSubObject
impl !RefUnwindSafe for CallbackSubObject
impl Send for CallbackSubObject
impl Sync for CallbackSubObject
impl Unpin for CallbackSubObject
impl !UnwindSafe for CallbackSubObject
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