[−][src]Struct memflow::connector::fileio::FileIOMemory
Accesses physical memory via file i/o.
This backend helper works in tandem with MappedPhysicalMemory.
Examples
use memflow::connector::FileIOMemory; use memflow::mem::MemoryMap; use std::fs::File; fn open(file: &File) { let map = MemoryMap::new(); let connector = FileIOMemory::try_with_reader(file, map); }
Implementations
impl<T: Seek + Read + Write + Send> FileIOMemory<T>
[src]
Trait Implementations
impl<T: Clone> Clone for FileIOMemory<T>
[src]
fn clone(&self) -> FileIOMemory<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Seek + Read + Write + Send> PhysicalMemory for FileIOMemory<T>
[src]
fn phys_read_raw_list(
&mut self,
data: &mut [PhysicalReadData<'_>]
) -> Result<()>
[src]
&mut self,
data: &mut [PhysicalReadData<'_>]
) -> Result<()>
fn phys_write_raw_list(&mut self, data: &[PhysicalWriteData<'_>]) -> Result<()>
[src]
fn metadata(&self) -> PhysicalMemoryMetadata
[src]
fn phys_read_raw_into(
&mut self,
addr: PhysicalAddress,
out: &mut [u8]
) -> Result<()>
[src]
&mut self,
addr: PhysicalAddress,
out: &mut [u8]
) -> Result<()>
fn phys_read_into<T: Pod + ?Sized>(
&mut self,
addr: PhysicalAddress,
out: &mut T
) -> Result<()> where
Self: Sized,
[src]
&mut self,
addr: PhysicalAddress,
out: &mut T
) -> Result<()> where
Self: Sized,
fn phys_read_raw(
&mut self,
addr: PhysicalAddress,
len: usize
) -> Result<Vec<u8>>
[src]
&mut self,
addr: PhysicalAddress,
len: usize
) -> Result<Vec<u8>>
fn phys_read<T: Pod + Sized>(&mut self, addr: PhysicalAddress) -> Result<T> where
Self: Sized,
[src]
Self: Sized,
fn phys_write_raw(&mut self, addr: PhysicalAddress, data: &[u8]) -> Result<()>
[src]
fn phys_write<T: Pod + ?Sized>(
&mut self,
addr: PhysicalAddress,
data: &T
) -> Result<()> where
Self: Sized,
[src]
&mut self,
addr: PhysicalAddress,
data: &T
) -> Result<()> where
Self: Sized,
fn phys_batcher(&mut self) -> PhysicalMemoryBatcher<'_, Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<T> !RefUnwindSafe for FileIOMemory<T>
impl<T> Send for FileIOMemory<T> where
T: Send,
T: Send,
impl<T> !Sync for FileIOMemory<T>
impl<T> Unpin for FileIOMemory<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for FileIOMemory<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> CloneablePhysicalMemory for T where
T: PhysicalMemory + Clone + 'static,
[src]
T: PhysicalMemory + Clone + 'static,
fn clone_box(&Self) -> Box<dyn CloneablePhysicalMemory + 'static>
[src]
fn downcast(&mut Self) -> &mut dyn PhysicalMemory
[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, P> PhysicalMemory for P where
P: Send + DerefMut<Target = T>,
T: PhysicalMemory + ?Sized,
[src]
P: Send + DerefMut<Target = T>,
T: PhysicalMemory + ?Sized,
fn phys_read_raw_list(
&mut Self,
&mut [PhysicalReadData<'_>]
) -> Result<(), Error>
[src]
&mut Self,
&mut [PhysicalReadData<'_>]
) -> Result<(), Error>
fn phys_write_raw_list(&mut Self, &[PhysicalWriteData<'_>]) -> Result<(), Error>
[src]
fn metadata(&Self) -> PhysicalMemoryMetadata
[src]
fn phys_read_raw_into(
&mut self,
addr: PhysicalAddress,
out: &mut [u8]
) -> Result<()>
[src]
&mut self,
addr: PhysicalAddress,
out: &mut [u8]
) -> Result<()>
fn phys_read_into<T: Pod + ?Sized>(
&mut self,
addr: PhysicalAddress,
out: &mut T
) -> Result<()> where
Self: Sized,
[src]
&mut self,
addr: PhysicalAddress,
out: &mut T
) -> Result<()> where
Self: Sized,
fn phys_read_raw(
&mut self,
addr: PhysicalAddress,
len: usize
) -> Result<Vec<u8>>
[src]
&mut self,
addr: PhysicalAddress,
len: usize
) -> Result<Vec<u8>>
fn phys_read<T: Pod + Sized>(&mut self, addr: PhysicalAddress) -> Result<T> where
Self: Sized,
[src]
Self: Sized,
fn phys_write_raw(&mut self, addr: PhysicalAddress, data: &[u8]) -> Result<()>
[src]
fn phys_write<T: Pod + ?Sized>(
&mut self,
addr: PhysicalAddress,
data: &T
) -> Result<()> where
Self: Sized,
[src]
&mut self,
addr: PhysicalAddress,
data: &T
) -> Result<()> where
Self: Sized,
fn phys_batcher(&mut self) -> PhysicalMemoryBatcher<'_, Self> where
Self: Sized,
[src]
Self: Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,