pub trait CaptureControl {
    // Required methods
    fn start(id: &Self) -> bool;
    fn start_id() -> Self;
    fn stop(id: &Self) -> bool;
    fn stop_id() -> Self;
}
Expand description

Trait to implement for Id, to control the publisher and all listeners.

[req:cap.ctrl]

Required Methods§

source

fn start(id: &Self) -> bool

Returns true if the given Id is used to signal the start of event capturing.

Possible implementation:

id == &START_CAPTURING_ID

[req:cap.ctrl.start]

source

fn start_id() -> Self

Returns the start-ID.

[req:cap.ctrl.start]

source

fn stop(id: &Self) -> bool

Returns true if the given Id is used to signal the end of event capturing.

Possible implementation:

id == &STOP_CAPTURING_ID

[req:cap.ctrl.stop]

source

fn stop_id() -> Self

Returns the stop-ID.

[req:cap.ctrl.stop]

Implementors§