[][src]Struct apigpio::trackbuf::Communicator

pub struct Communicator<RW: AsyncRead + AsyncWrite>(_);

Methods

impl<RW: AsyncRead + AsyncWrite + Unpin> Communicator<RW>[src]

pub fn new(connection: RW) -> Communicator<RW>[src]

pub fn into_inner(self) -> RW[src]

Methods from Deref<Target = CommunicatorSplit<ReadHalf<RW>, WriteHalf<RW>>>

pub async fn communicate<'_, '_, '_, '_>(
    &'_ mut self,
    cmdvec: &'_ [&'_ [u8]],
    __arg2: &'_ mut [u8]
) -> Result<()>
[src]

Trait Implementations

impl<RW: AsyncRead + AsyncWrite> Deref for Communicator<RW>[src]

type Target = CommunicatorSplit<ReadHalf<RW>, WriteHalf<RW>>

The resulting type after dereferencing.

impl<RW: AsyncRead + AsyncWrite> DerefMut for Communicator<RW>[src]

Auto Trait Implementations

impl<RW> !RefUnwindSafe for Communicator<RW>

impl<RW> Send for Communicator<RW> where
    RW: Send

impl<RW> Sync for Communicator<RW> where
    RW: Sync

impl<RW> Unpin for Communicator<RW>

impl<RW> !UnwindSafe for Communicator<RW>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.