pub struct WriteChannel<'d, const N: usize> { /* private fields */ }Expand description
socket write channel
N is channel len
Implementations§
Source§impl<'d, const N: usize> WriteChannel<'d, N>
custom method
impl<'d, const N: usize> WriteChannel<'d, N>
custom method
Sourcepub async fn try_tcp_write<const CN: usize, const TX_SZ: usize, const RX_SZ: usize, const BUF_SIZE: usize>(
&self,
conn: &mut TcpConnection<'_, CN, TX_SZ, RX_SZ, BUF_SIZE>,
) -> Result<(), Error>
pub async fn try_tcp_write<const CN: usize, const TX_SZ: usize, const RX_SZ: usize, const BUF_SIZE: usize>( &self, conn: &mut TcpConnection<'_, CN, TX_SZ, RX_SZ, BUF_SIZE>, ) -> Result<(), Error>
try tcp write data
pub async fn tcp_write<const CN: usize, const TX_SZ: usize, const RX_SZ: usize, const BUF_SIZE: usize>( &self, conn: &mut TcpConnection<'_, CN, TX_SZ, RX_SZ, BUF_SIZE>, )
Sourcepub async fn send_bytes(&self, bytes: &[u8])
pub async fn send_bytes(&self, bytes: &[u8])
send bytes data
Auto Trait Implementations§
impl<'d, const N: usize> !Freeze for WriteChannel<'d, N>
impl<'d, const N: usize> !RefUnwindSafe for WriteChannel<'d, N>
impl<'d, const N: usize> Send for WriteChannel<'d, N>
impl<'d, const N: usize> Sync for WriteChannel<'d, N>
impl<'d, const N: usize> Unpin for WriteChannel<'d, N>
impl<'d, const N: usize> !UnwindSafe for WriteChannel<'d, N>
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