pub struct TCP { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Tube for TCP
impl Tube for TCP
fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn print_status(&self)
fn recvline<'life0, 'async_trait>(
&'life0 mut self,
keep_end: bool,
timeout: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recvuntil<'a, 'life0, 'async_trait>(
&'life0 mut self,
pattern: &'a [u8],
keep_end: bool,
timeout: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn sendline<'a, 'life0, 'async_trait>(
&'life0 mut self,
input: &'a [u8],
timeout: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn send<'a, 'life0, 'async_trait>(
&'life0 mut self,
input: &'a [u8],
timeout: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn interactive<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for TCP
impl RefUnwindSafe for TCP
impl Send for TCP
impl Sync for TCP
impl Unpin for TCP
impl UnwindSafe for TCP
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