Struct v9::lock::Locked [−][src]
Fields
obj: UnsafeCell<Box<dyn Any>>
state: LockState
name: Name
Implementations
impl Locked
[src]
pub fn new(obj: Box<dyn Any>, name: Name) -> Box<Self>
[src]
pub fn is_poisoned(&self) -> bool
[src]
pub fn can(&self, access: Access) -> bool
[src]
pub fn acquire(&mut self, access: Access)
[src]
pub fn release(&mut self, access: Access)
[src]
pub unsafe fn contents(&mut self) -> *mut dyn Any
[src]
pub unsafe fn read(&mut self) -> GuardRef
[src]
pub unsafe fn write(&mut self) -> GuardMut
[src]
pub fn into_inner(self) -> Box<dyn Any>
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Locked
impl !Send for Locked
impl !Sync for Locked
impl Unpin for Locked
impl !UnwindSafe for Locked
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<X> ForeignKey for X
[src]
fn __v9_link_foreign_table_name() -> Option<Name>
[src]
fn __v9_link_foreign_key<LM: TableMarker>(_universe: &mut Universe)
[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, 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.
pub 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>,