[−][src]Struct libnspire::Handle
Implementations
impl<T: UsbContext> Handle<T>
[src]
pub fn new(device: DeviceHandle<T>) -> Result<Self>
[src]
pub fn info(&self) -> Result<Info>
[src]
pub fn screenshot(&self) -> Result<Image>
[src]
pub fn move_file(&self, src: &str, dest: &str) -> Result<()>
[src]
pub fn file_attr(&self, src: &str) -> Result<DirItem>
[src]
pub fn copy_file(&self, src: &str, dest: &str) -> Result<()>
[src]
pub fn delete_file(&self, path: &str) -> Result<()>
[src]
pub fn read_file(&self, path: &str, buf: &mut [u8]) -> Result<usize>
[src]
pub fn write_file(&self, path: &str, buf: &[u8]) -> Result<()>
[src]
pub fn send_os(&self, buf: &[u8]) -> Result<()>
[src]
pub fn create_dir(&self, path: &str) -> Result<()>
[src]
pub fn delete_dir(&self, path: &str) -> Result<()>
[src]
pub fn list_dir(&self, path: &str) -> Result<DirList>
[src]
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Handle<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for Handle<T>
impl<T> !Sync for Handle<T>
impl<T> Unpin for Handle<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Handle<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,