pub struct MapedSharedMemory {
pub key: usize,
pub mem: Arc<SharedMemory>,
pub start: usize,
pub size: usize,
}
Expand description
映射的共享内存结构体
Fields§
§key: usize
共享内存的键
mem: Arc<SharedMemory>
共享内存的引用计数
start: usize
映射的起始地址
size: usize
映射的大小
Implementations§
Trait Implementations§
Source§fn clone(&self) -> MapedSharedMemory
fn clone(&self) -> MapedSharedMemory
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for Twhere
T: Any + Send,
impl<T> DowncastSend for Twhere
T: Any + Send,
Source§fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
Converts
Box<Trait>
(where Trait: DowncastSend
) to Box<dyn Any + Send>
, which
can then be downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§impl<T> DowncastSync for Twhere
T: Any + Send + Sync,
impl<T> DowncastSync for Twhere
T: Any + Send + Sync,
Source§fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>
Converts
Box<Trait>
(where Trait: DowncastSync
) to Box<dyn Any + Send + Sync>
,
which can then be downcast
into Box<ConcreteType>
where ConcreteType
implements
Trait
.Source§fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
Converts
Arc<Trait>
(where Trait: DowncastSync
) to Arc<Any>
, which can then be
downcast
into Arc<ConcreteType>
where ConcreteType
implements Trait
.