[−][src]Struct vm_memory::guest_memory::FileOffset
Represents the start point within a File that backs a GuestMemoryRegion.
Implementations
impl FileOffset[src]
pub fn new(file: File, start: u64) -> Self[src]
Creates a new FileOffset object.
pub fn from_arc(file: Arc<File>, start: u64) -> Self[src]
Creates a new FileOffset object based on an exiting Arc<File>.
pub fn file(&self) -> &File[src]
Returns a reference to the inner File object.
pub fn arc(&self) -> &Arc<File>[src]
Return a reference to the inner Arc<File> object.
pub fn start(&self) -> u64[src]
Returns the start offset within the file.
Trait Implementations
impl Clone for FileOffset[src]
fn clone(&self) -> FileOffset[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for FileOffset[src]
Auto Trait Implementations
impl RefUnwindSafe for FileOffset
impl Send for FileOffset
impl Sync for FileOffset
impl Unpin for FileOffset
impl UnwindSafe for FileOffset
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> 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>,