Struct tokio_pipe::AtomicWriteIoSlices
source · pub struct AtomicWriteIoSlices<'a, 'b>(/* private fields */);
Expand description
IoSlice
s that can be written atomically
Implementations§
source§impl<'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§
source§impl<'a, 'b> Clone for AtomicWriteIoSlices<'a, 'b>
impl<'a, 'b> Clone for AtomicWriteIoSlices<'a, 'b>
source§fn clone(&self) -> AtomicWriteIoSlices<'a, 'b>
fn clone(&self) -> AtomicWriteIoSlices<'a, 'b>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'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> Freeze for AtomicWriteIoSlices<'a, 'b>
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>
impl<'a, 'b> UnwindSafe for AtomicWriteIoSlices<'a, 'b>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)