Skip to main content

Subscriber

Trait Subscriber 

Source
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§

Source

fn new_subscription(ip: &str) -> Self

Creates a new Subscriber.

Source

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.

Implementors§