Trait fsuipc::Session
[−]
[src]
pub trait Session { fn read_bytes(
&mut self,
offset: u16,
dest: *mut u8,
len: usize
) -> Result<usize>; fn write_bytes(
&mut self,
offset: u16,
src: *const u8,
len: usize
) -> Result<usize>; fn process(self) -> Result<usize>; fn read<'a, T>(
&'a mut self,
offset: u16,
result: &'a mut T
) -> Result<usize> { ... } fn write<T>(&mut self, offset: u16, value: &T) -> Result<usize> { ... } }
A session of read & write operations from/to FSUIPC
Objects of this trait represents a session comprised of a sequence of read and write
operations. The operations are requested by using read()
and write()
methods.
They are not executed immediately but after calling process()
method, which consumes
the session.
Required Methods
fn read_bytes(
&mut self,
offset: u16,
dest: *mut u8,
len: usize
) -> Result<usize>
&mut self,
offset: u16,
dest: *mut u8,
len: usize
) -> Result<usize>
fn write_bytes(
&mut self,
offset: u16,
src: *const u8,
len: usize
) -> Result<usize>
&mut self,
offset: u16,
src: *const u8,
len: usize
) -> Result<usize>