pub struct BufWrite(pub Arc<dyn AsBufWrite + 'static>);
Expand description
A concrete writable buffer type that may or may not be mem_locked.
Tuple Fields
0: Arc<dyn AsBufWrite + 'static>
Implementations
impl BufWrite
impl BufWrite
pub fn new_no_lock(size: usize) -> BufWrite
pub fn new_no_lock(size: usize) -> BufWrite
Construct a new BufWrite that is NOT mem_locked.
pub fn new_mem_locked(size: usize) -> Result<BufWrite, OneErr>
pub fn new_mem_locked(size: usize) -> Result<BufWrite, OneErr>
Construct a new BufWrite that IS mem_locked. Use this for passwords / private keys, etc, but NOT everything, locked memory is a finite resource.
pub fn deep_clone_no_lock<O>(o: O) -> BufWrite where
O: 'static + Into<BufRead> + Send,
pub fn deep_clone_no_lock<O>(o: O) -> BufWrite where
O: 'static + Into<BufRead> + Send,
Deep clone the data referred to by another buffer object, into a new non-memory-locked BufWrite instance.
pub fn deep_clone_mem_locked<O>(o: O) -> Result<BufWrite, OneErr> where
O: 'static + Into<BufRead> + Send,
pub fn deep_clone_mem_locked<O>(o: O) -> Result<BufWrite, OneErr> where
O: 'static + Into<BufRead> + Send,
Deep clone the data referred to by another buffer object, into a new MEMORY LOCKED BufWrite instance.
pub fn write_lock(&self) -> WriteGuard<'_>
pub fn write_lock(&self) -> WriteGuard<'_>
Obtain write access to the underlying buffer.
Trait Implementations
impl<const S: usize> From<BufWriteSized<S>> for BufWrite
impl<const S: usize> From<BufWriteSized<S>> for BufWrite
fn from(b: BufWriteSized<S>) -> BufWrite
fn from(b: BufWriteSized<S>) -> BufWrite
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for BufWrite
impl Send for BufWrite
impl Sync for BufWrite
impl Unpin for BufWrite
impl !UnwindSafe for BufWrite
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