Working example of client
This commit is contained in:
@@ -1 +1 @@
|
||||
pub mod network_trait;
|
||||
pub mod network_trait;
|
||||
|
||||
@@ -3,17 +3,17 @@ use core::future::Future;
|
||||
|
||||
use crate::packet::mqtt_packet::Packet;
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum NetworkError {
|
||||
Connection,
|
||||
Unknown,
|
||||
}
|
||||
|
||||
|
||||
|
||||
pub trait Network {
|
||||
type ConnectionFuture<'m>: Future<Output = Result<(), NetworkError>>
|
||||
where
|
||||
Self: 'm;
|
||||
Self: 'm;
|
||||
|
||||
type WriteFuture<'m>: Future<Output = Result<(), NetworkError>>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user