pub struct Connection { /* private fields */ }
Implementations§
Source§impl Connection
impl Connection
pub async fn new(addr: &str) -> Result<Connection, Error>
pub async fn close(self) -> Result<(), Error>
pub async fn get_device_list(&mut self) -> Result<Vec<String>, Error>
pub async fn attach(&mut self, device: &str) -> Result<(), Error>
pub async fn get_info(&mut self) -> Result<Vec<String>, Error>
pub async fn list_files(&mut self, path: &str) -> Result<Vec<FileInfo>, Error>
pub async fn put_file(&mut self, path: &str, data: &[u8]) -> Result<(), Error>
pub async fn rm(&mut self, path: &str) -> Result<(), Error>
pub async fn read_mem( &mut self, addr: u32, data: &mut [u8], ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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