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]

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

Formats the value using the given formatter. Read more

impl<CS> Default for RawSpinRwLock<CS>[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<CS> RawDowngradeRwLock for RawSpinRwLock<CS>[src]

unsafe fn downgrade(&self)[src]

Changes lock from writing to 1 writer. Read more

impl<CS> RawRwLock for RawSpinRwLock<CS> where
    CS: ThreadFunctions
[src]

fn add_reader(&self)[src]

Blocks until a reader is added to this lock

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]

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]

Adds a writer to this lock with a timeout. Returns true if successful

impl<CS> RawTryRwLock for RawSpinRwLock<CS>[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]

Tries to add a writer to the lock. Returns true if successful.

unsafe fn remove_reader(&self)[src]

Removes a reader from this lock. Read more

unsafe fn remove_writer(&self)[src]

Removes a writer from this lock Read more

impl<CS> RawTryUpgradeRwLock for RawSpinRwLock<CS>[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]

unsafe fn upgrade(&self)[src]

Blocks until lock is changed from read to write. Read more

impl<CS> RawUpgradeTimeoutRwLock for RawSpinRwLock<CS> where
    CS: ThreadFunctions + TimeFunctions
[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

Auto Trait Implementations

impl<CS> RefUnwindSafe for RawSpinRwLock<CS>

impl<CS> Send for RawSpinRwLock<CS>

impl<CS> Sync for RawSpinRwLock<CS>

impl<CS> Unpin for RawSpinRwLock<CS>

impl<CS> UnwindSafe for RawSpinRwLock<CS>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.