SyncObj

Trait SyncObj 

Source
pub trait SyncObj: Any {
    // Provided methods
    fn on_access<'tcx>(&self, _access_kind: AccessKind) -> InterpResult<'tcx> { ... }
    fn delete_on_write(&self) -> bool { ... }
}
Expand description

A trait for the synchronization metadata that can be attached to a memory location.

Provided Methods§

Source

fn on_access<'tcx>(&self, _access_kind: AccessKind) -> InterpResult<'tcx>

Determines whether reads/writes to this object’s location are currently permitted.

Source

fn delete_on_write(&self) -> bool

Determines whether this object’s metadata shall be deleted when a write to its location occurs.

Implementations§

Source§

impl dyn SyncObj

Source

pub fn downcast_ref<T: Any>(&self) -> Option<&T>

Trait Implementations§

Source§

impl Debug for dyn SyncObj

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§