Struct concurrency_traits::rw_lock::RawSpinRwLock [−][src]
pub struct RawSpinRwLock<CS> { /* fields omitted */ }
Expand description
The raw portion of SpinRwLock
.
Trait Implementations
impl<CS: Debug> Debug for RawSpinRwLock<CS>
[src]
impl<CS: Debug> Debug for RawSpinRwLock<CS>
[src]impl<CS> Default for RawSpinRwLock<CS>
[src]
impl<CS> Default for RawSpinRwLock<CS>
[src]impl<CS> RawDowngradeRwLock for RawSpinRwLock<CS>
[src]
impl<CS> RawDowngradeRwLock for RawSpinRwLock<CS>
[src]impl<CS> RawRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions,
[src]
impl<CS> RawRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions,
[src]fn add_reader(&self)
[src]
fn add_reader(&self)
[src]Blocks until a reader is added to this lock
fn add_writer(&self)
[src]
fn add_writer(&self)
[src]Blocks until a writer is added to this lock
impl<CS> RawTimeoutRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions + TimeFunctions,
[src]
impl<CS> RawTimeoutRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions + TimeFunctions,
[src]fn add_reader_timeout(&self, timeout: Duration) -> bool
[src]
fn add_reader_timeout(&self, timeout: Duration) -> bool
[src]Adds a reader to this lock with a timeout. Returns true if successful
fn add_writer_timeout(&self, timeout: Duration) -> bool
[src]
fn add_writer_timeout(&self, timeout: Duration) -> bool
[src]Adds a writer to this lock with a timeout. Returns true if successful
impl<CS> RawTryRwLock for RawSpinRwLock<CS>
[src]
impl<CS> RawTryRwLock for RawSpinRwLock<CS>
[src]fn try_add_reader(&self) -> bool
[src]
fn try_add_reader(&self) -> bool
[src]Tries to add a reader to the lock. Returns true if successful.
fn try_add_writer(&self) -> bool
[src]
fn try_add_writer(&self) -> bool
[src]Tries to add a writer to the lock. Returns true if successful.
unsafe fn remove_reader(&self)
[src]
unsafe fn remove_reader(&self)
[src]Removes a reader from this lock. Read more
unsafe fn remove_writer(&self)
[src]
unsafe fn remove_writer(&self)
[src]Removes a writer from this lock Read more
impl<CS> RawTryUpgradeRwLock for RawSpinRwLock<CS>
[src]
impl<CS> RawTryUpgradeRwLock for RawSpinRwLock<CS>
[src]unsafe fn try_upgrade(&self) -> bool
[src]
unsafe fn try_upgrade(&self) -> bool
[src]Tries to upgrade a reader to a writer. Read more
impl<CS> RawUpgradeRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions,
[src]
impl<CS> RawUpgradeRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions,
[src]impl<CS> RawUpgradeTimeoutRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions + TimeFunctions,
[src]
impl<CS> RawUpgradeTimeoutRwLock for RawSpinRwLock<CS> where
CS: ThreadFunctions + TimeFunctions,
[src]unsafe fn upgrade_timeout(&self, timeout: Duration) -> bool
[src]
unsafe fn upgrade_timeout(&self, timeout: Duration) -> bool
[src]Blocks until lock is changed from read to write (true) or times out (false). Read more