Struct oxygengine::core::scripting::intuicio::prelude::AsyncShared
pub struct AsyncShared<T> { /* private fields */ }
Implementations§
pub fn new(data: T) -> AsyncShared<T>
pub fn try_consume(self) -> Result<T, AsyncShared<T>>
pub fn read(&self) -> Option<RwLockReadGuard<'_, T>>
pub fn write(&self) -> Option<RwLockWriteGuard<'_, T>>
pub fn swap(&self, data: T) -> Option<T>
pub fn references_count(&self) -> usize
Trait Implementations§
§fn clone(&self) -> AsyncShared<T>
fn clone(&self) -> AsyncShared<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§fn default() -> AsyncShared<T>
fn default() -> AsyncShared<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§unsafe fn finalize_raw(data: *mut ())
unsafe fn finalize_raw(data: *mut ())
Safety Read more
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more