[−][src]Struct lib3h_sodium::SecureBuffer
A secure buffer implementation of lib3h_crypto_api::Buffer making use of libsodium's implementation of mlock and mprotect.
Methods
impl SecureBuffer
[src]
Trait Implementations
impl Send for SecureBuffer
[src]
impl Drop for SecureBuffer
[src]
impl Clone for SecureBuffer
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for SecureBuffer
[src]
impl DerefMut for SecureBuffer
[src]
impl Debug for SecureBuffer
[src]
impl Buffer for SecureBuffer
[src]
fn box_clone(&self) -> Box<dyn Buffer>
[src]
fn as_buffer(&self) -> &dyn Buffer
[src]
fn as_buffer_mut(&mut self) -> &mut dyn Buffer
[src]
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn set_no_access(&self)
[src]
fn set_readable(&self)
[src]
fn set_writable(&self)
[src]
fn read_lock(&self) -> ReadLocker
[src]
return a locker object that marks this Buffer readable until the locker goes out of scope Read more
fn write_lock(&mut self) -> WriteLocker
[src]
return a locker object that marks this Buffer writable until the locker goes out of scope Read more
fn zero(&mut self)
[src]
fill the buffer with zeroes
fn write(&mut self, offset: usize, data: &[u8]) -> Result<(), CryptoError>
[src]
write data
into this buffer at given offset
this function will return CryptoError::WriteOverflow if data is too long Read more
Auto Trait Implementations
impl Unpin for SecureBuffer
impl !Sync for SecureBuffer
impl UnwindSafe for SecureBuffer
impl !RefUnwindSafe for SecureBuffer
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,