pub struct Driver<AsyncRestart: Future<Output = ()>, AsyncRecvByte: Future<Output = u8>, AsyncSendByte: Future<Output = ()>, AsyncError: Future<Output = ()>, Restart: FnMut() -> AsyncRestart, RecvByte: FnMut() -> AsyncRecvByte, SendByte: FnMut(u8) -> AsyncSendByte, Error: FnMut(&'static str, u8) -> AsyncError> {
pub restart: Restart,
pub recv_byte: RecvByte,
pub send_byte: SendByte,
pub error: Error,
}
Fields§
§restart: Restart
§recv_byte: RecvByte
§send_byte: SendByte
§error: Error
Auto Trait Implementations§
impl<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error> Freeze for Driver<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error>
impl<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error> RefUnwindSafe for Driver<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error>where
Restart: RefUnwindSafe,
RecvByte: RefUnwindSafe,
SendByte: RefUnwindSafe,
Error: RefUnwindSafe,
impl<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error> Send for Driver<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error>
impl<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error> Sync for Driver<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error>
impl<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error> Unpin for Driver<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error>
impl<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error> UnwindSafe for Driver<AsyncRestart, AsyncRecvByte, AsyncSendByte, AsyncError, Restart, RecvByte, SendByte, Error>
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