Struct sgx_rsrvmm::map::MapObject
source · [−]Implementations
sourceimpl<T: Map> MapObject<T>
impl<T: Map> MapObject<T>
pub fn new(object: Arc<T>, perm: ProtectPerm, offset: usize) -> MapObject<T>
pub fn zero() -> MapObject<Zero>
pub fn can_read(&self) -> bool
pub fn can_write(&self) -> bool
pub fn read(&self, buf: &mut [u8]) -> OsResult<usize>
pub fn write(&mut self, buf: &[u8]) -> OsResult<usize>
pub fn flush(&mut self) -> OsResult
pub fn perm(&self) -> ProtectPerm
pub fn offset(&self) -> usize
pub fn set_perm(&mut self, perm: ProtectPerm)
pub fn set_offset(&mut self, offset: usize)
pub fn as_object(&self) -> &Arc<T>
pub fn into_object(self) -> Arc<T>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for MapObject<T>where
T: RefUnwindSafe,
impl<T> Send for MapObject<T>where
T: Send + Sync,
impl<T> Sync for MapObject<T>where
T: Send + Sync,
impl<T> Unpin for MapObject<T>
impl<T> UnwindSafe for MapObject<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more