pub struct BufWriteMemLockedSized<const N: usize>(_);
Expand description
This writable buffer type is mem_locked. Use this for passwords / private keys, etc, but NOT everything, locked memory is a finite resource.
Implementations
impl<const N: usize> BufWriteMemLockedSized<N>
impl<const N: usize> BufWriteMemLockedSized<N>
pub fn new() -> Result<BufWriteMemLockedSized<N>, OneErr>
pub fn new() -> Result<BufWriteMemLockedSized<N>, OneErr>
Construct a new writable, mem_locked buffer. Use this for passwords / private keys, etc, but NOT everything, locked memory is a finite resource.
Trait Implementations
impl<const N: usize> AsBufExtend for BufWriteMemLockedSized<N>
impl<const N: usize> AsBufExtend for BufWriteMemLockedSized<N>
fn extend_lock(&self) -> ExtendGuard<'_>
fn extend_lock(&self) -> ExtendGuard<'_>
Obtain access to extend the underlying buffer. Warning: Depending on the underlying data type, each new ExtendGuard could be a new cursor… i.e. pulling a new extend lock could overwrite previous data. Read more
impl<const N: usize> AsBufRead for BufWriteMemLockedSized<N>
impl<const N: usize> AsBufRead for BufWriteMemLockedSized<N>
fn try_unwrap(
self: Arc<BufWriteMemLockedSized<N>>
) -> Result<Box<[u8], Global>, BufRead>
fn try_unwrap(
self: Arc<BufWriteMemLockedSized<N>>
) -> Result<Box<[u8], Global>, BufRead>
Attempt to extract the inner contents of this buf without cloning. If this memory is locked or there are clones of this reference, the unwrap will fail, returning a BufRead instance. Read more
impl<const N: usize> AsBufReadSized<N> for BufWriteMemLockedSized<N>
impl<const N: usize> AsBufReadSized<N> for BufWriteMemLockedSized<N>
fn read_lock_sized(&self) -> ReadGuardSized<'_, N>
fn read_lock_sized(&self) -> ReadGuardSized<'_, N>
Obtain read access to the underlying buffer.
fn into_read_unsized(self: Arc<BufWriteMemLockedSized<N>>) -> BufRead
fn into_read_unsized(self: Arc<BufWriteMemLockedSized<N>>) -> BufRead
Convert to an unsized BufRead instance without cloning internal data and without changing memory locking strategy. Read more
fn try_unwrap_sized(
self: Arc<BufWriteMemLockedSized<N>>
) -> Result<[u8; N], BufReadSized<N>>
fn try_unwrap_sized(
self: Arc<BufWriteMemLockedSized<N>>
) -> Result<[u8; N], BufReadSized<N>>
Attempt to extract the inner contents of this buf without cloning. If this memory is locked or there are clones of this reference, the unwrap will fail, returning a BufRead instance. Read more
impl<const N: usize> AsBufWrite for BufWriteMemLockedSized<N>
impl<const N: usize> AsBufWrite for BufWriteMemLockedSized<N>
fn write_lock(&self) -> WriteGuard<'_>
fn write_lock(&self) -> WriteGuard<'_>
Obtain write access to the underlying buffer.
fn into_read(self: Arc<BufWriteMemLockedSized<N>>) -> BufRead
fn into_read(self: Arc<BufWriteMemLockedSized<N>>) -> BufRead
Downgrade this to a read-only reference without cloning internal data and without changing memory locking strategy. Read more
fn into_extend(self: Arc<BufWriteMemLockedSized<N>>) -> BufExtend
fn into_extend(self: Arc<BufWriteMemLockedSized<N>>) -> BufExtend
Transform this buffer into an extendable type.
impl<const N: usize> AsBufWriteSized<N> for BufWriteMemLockedSized<N>
impl<const N: usize> AsBufWriteSized<N> for BufWriteMemLockedSized<N>
fn write_lock_sized(&self) -> WriteGuardSized<'_, N>
fn write_lock_sized(&self) -> WriteGuardSized<'_, N>
Obtain write access to the underlying buffer.
fn into_read_sized(self: Arc<BufWriteMemLockedSized<N>>) -> BufReadSized<N>
fn into_read_sized(self: Arc<BufWriteMemLockedSized<N>>) -> BufReadSized<N>
Downgrade this to a read-only reference without cloning internal data and without changing memory locking strategy. Read more
fn into_write_unsized(self: Arc<BufWriteMemLockedSized<N>>) -> BufWrite
fn into_write_unsized(self: Arc<BufWriteMemLockedSized<N>>) -> BufWrite
Convert to an unsized BufWrite instance without cloning internal data and without changing memory locking strategy. Read more
Auto Trait Implementations
impl<const N: usize> !RefUnwindSafe for BufWriteMemLockedSized<N>
impl<const N: usize> Send for BufWriteMemLockedSized<N>
impl<const N: usize> Sync for BufWriteMemLockedSized<N>
impl<const N: usize> Unpin for BufWriteMemLockedSized<N>
impl<const N: usize> UnwindSafe for BufWriteMemLockedSized<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more