[][src]Struct lib3h_crypto_api::WriteLocker

pub struct WriteLocker<'a, T: Buffer>(_);

Helper object that will automatically secure a Buffer when dropped

Methods

impl<'a, T: Buffer> WriteLocker<'a, T>[src]

pub fn new(b: &'a mut T) -> Self[src]

Trait Implementations

impl<'a, T: Buffer> Drop for WriteLocker<'a, T>[src]

impl<'a, T: Buffer> Deref for WriteLocker<'a, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T: Buffer> DerefMut for WriteLocker<'a, T>[src]

impl<'a, T: Buffer> Debug for WriteLocker<'a, T>[src]

Auto Trait Implementations

impl<'a, T> Send for WriteLocker<'a, T>

impl<'a, T> Unpin for WriteLocker<'a, T>

impl<'a, T> Sync for WriteLocker<'a, T> where
    T: Sync

impl<'a, T> !UnwindSafe for WriteLocker<'a, T>

impl<'a, T> RefUnwindSafe for WriteLocker<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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.

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.

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

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

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