pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(path: &Path) -> Result<Client, Error>
pub fn dma_map( &mut self, offset: u64, address: u64, size: u64, fd: RawFd, ) -> Result<(), Error>
pub fn dma_unmap(&mut self, address: u64, size: u64) -> Result<(), Error>
pub fn reset(&mut self) -> Result<(), Error>
pub fn region_read( &mut self, region: u32, offset: u64, data: &mut [u8], ) -> Result<(), Error>
pub fn region_write( &mut self, region: u32, offset: u64, data: &[u8], ) -> Result<(), Error>
pub fn get_irq_info(&mut self, index: u32) -> Result<IrqInfo, Error>
pub fn set_irqs( &mut self, index: u32, flags: u32, start: u32, count: u32, fds: &[RawFd], ) -> Result<(), Error>
pub fn region(&self, region_index: u32) -> Option<&Region>
pub fn resettable(&self) -> bool
pub fn shutdown(&self) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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