Struct tokio_pipe::AtomicWriteIoSlices
source · [−]pub struct AtomicWriteIoSlices<'a, 'b>(_, _);
Expand description
IoSlice
s that can be written atomically
Implementations
sourceimpl<'a, 'b> AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> AtomicWriteIoSlices<'a, 'b>
sourcepub fn new(buffers: &'a [IoSlice<'b>]) -> Option<Self>
pub fn new(buffers: &'a [IoSlice<'b>]) -> Option<Self>
If total length is more than PIPE_BUF, then return None.
pub fn get_total_len(self) -> usize
pub fn into_inner(self) -> &'a [IoSlice<'b>]
Trait Implementations
sourceimpl<'a, 'b> Clone for AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> Clone for AtomicWriteIoSlices<'a, 'b>
sourcefn clone(&self) -> AtomicWriteIoSlices<'a, 'b>
fn clone(&self) -> AtomicWriteIoSlices<'a, 'b>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, 'b> Debug for AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> Debug for AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> Copy for AtomicWriteIoSlices<'a, 'b>
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> Send for AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> Sync for AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> Unpin for AtomicWriteIoSlices<'a, 'b> where
'b: 'a,
impl<'a, 'b> UnwindSafe for AtomicWriteIoSlices<'a, 'b>
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