Struct Copier

pub(in ::sys::io::kernel_copy::linux) struct Copier<'a, 'b, R: Read + ?Sized, W: Write + ?Sized> { pub(in ::sys::io::kernel_copy::linux) read: &'a mut R, pub(in ::sys::io::kernel_copy::linux) write: &'b mut W }

Fields

read: &'a mut R
write: &'b mut W

Trait Implementations

impl<R: CopyRead, W: CopyWrite> SpecCopy for Copier<'_, '_, R, W>

fn copy(self) -> Result<CopyState>

impl<R: Read + ?Sized, W: Write + ?Sized> SpecCopy for Copier<'_, '_, R, W>

fn copy(self) -> Result<CopyState>

Auto Trait Implementations

impl<'a, 'b, R, W> !UnwindSafe for Copier<'a, 'b, R, W>

impl<'a, 'b, R, W> Freeze for Copier<'a, 'b, R, W> where &'a mut R: Freeze, &'b mut W: Freeze, R: ?Sized, W: ?Sized,

impl<'a, 'b, R, W> RefUnwindSafe for Copier<'a, 'b, R, W> where &'a mut R: RefUnwindSafe, &'b mut W: RefUnwindSafe, R: ?Sized, W: ?Sized,

impl<'a, 'b, R, W> Send for Copier<'a, 'b, R, W> where &'a mut R: Send, &'b mut W: Send, R: ?Sized, W: ?Sized,

impl<'a, 'b, R, W> Sync for Copier<'a, 'b, R, W> where &'a mut R: Sync, &'b mut W: Sync, R: ?Sized, W: ?Sized,

impl<'a, 'b, R, W> Unpin for Copier<'a, 'b, R, W> where &'a mut R: Unpin, &'b mut W: Unpin, R: ?Sized, W: ?Sized,

impl<'a, 'b, R, W> UnsafeUnpin for Copier<'a, 'b, R, W> where &'a mut R: UnsafeUnpin, &'b mut W: UnsafeUnpin, R: ?Sized, W: ?Sized,

Blanket Implementations

impl<T> Any for Copier<'a, 'b, R, W> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Copier<'a, 'b, R, W> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Copier<'a, 'b, R, W> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Copier<'a, 'b, R, W>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for Copier<'a, 'b, R, W> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for Copier<'a, 'b, R, W>

impl<T, U> Into<U> for Copier<'a, 'b, R, W> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Copier<'a, 'b, R, W> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for Copier<'a, 'b, R, W> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>