pub struct TxAsync { /* private fields */ }Expand description
Asynchronous TX structure.
Implementations§
Source§impl TxAsync
impl TxAsync
Sourcepub fn new(tx: Tx, waker_idx: usize) -> Result<Self, InvalidWakerIndex>
pub fn new(tx: Tx, waker_idx: usize) -> Result<Self, InvalidWakerIndex>
Create a new asynchronous TX structure.
Trait Implementations§
Source§impl ErrorType for TxAsync
impl ErrorType for TxAsync
Source§type Error = Infallible
type Error = Infallible
Error type of all the IO operations on this type.
Source§impl Write for TxAsync
impl Write for TxAsync
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer asynchronously.
This implementation is not side effect free, and a started future might have already written part of the passed buffer.
Auto Trait Implementations§
impl Freeze for TxAsync
impl RefUnwindSafe for TxAsync
impl Send for TxAsync
impl !Sync for TxAsync
impl Unpin for TxAsync
impl UnwindSafe for TxAsync
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