oa::CallbackSet

Ordered list of Callback objects attached to a session. Callbacks fire in insertion order. This mirrors oa::Iterator::addCallback but is an explicit value rather than a virtual base member so the concrete session type can own it directly.

StRust public API

Declaration

pub struct CallbackSet { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn add(&mut self, cb: Box<dyn Callback>)
pub fn fire_begin(&mut self, ctx: &dyn IteratorContext)
pub fn fire_step(&mut self, ctx: &dyn IteratorContext)
pub fn fire_end(&mut self, ctx: &dyn IteratorContext)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool

Associated Functions

pub fn new() -> Self
fn default() -> Self

Public Method Documentation

pub fn add( &mut self, cb: Box<dyn Callback> )
No public source comment is attached to this declaration.
pub fn fire_begin( &mut self, ctx: &dyn IteratorContext )
No public source comment is attached to this declaration.
pub fn fire_step( &mut self, ctx: &dyn IteratorContext )
No public source comment is attached to this declaration.
pub fn fire_end( &mut self, ctx: &dyn IteratorContext )
No public source comment is attached to this declaration.
pub fn len( &self ) -> usize
No public source comment is attached to this declaration.
pub fn is_empty( &self ) -> bool
No public source comment is attached to this declaration.
pub fn new() -> Self
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.