pub trait Subscriber {
// Required methods
fn new_subscription(ip: &str) -> Self;
fn subscribe_check(&mut self) -> Option<ComPacket>;
}Expand description
A connection that subscribes to the specified ip.
Required Methods§
Sourcefn new_subscription(ip: &str) -> Self
fn new_subscription(ip: &str) -> Self
Creates a new Subscriber.
Sourcefn subscribe_check(&mut self) -> Option<ComPacket>
fn subscribe_check(&mut self) -> Option<ComPacket>
Checks for new packets on the connection.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.