pub struct Module {
pub max_batch_size: Option<u32>,
pub name: String,
pub onto_types: Vec<String>,
/* private fields */
}Fields§
§max_batch_size: Option<u32>§name: String§onto_types: Vec<String>Implementations§
Source§impl Module
impl Module
pub fn new_with_name(name: &str) -> Module
pub fn create(module_id: Option<i64>, module_name: &str) -> Module
pub fn new() -> Module
pub fn is_content_onto( &self, cmd: IndvOp, new_state: &mut Individual, prev_state: &mut Individual, ) -> bool
pub fn get_property<T>(in_param: &str) -> Option<T>where
T: FromStr,
pub fn connect_to_notify_channel(&mut self) -> Option<Socket>
pub fn listen_queue_raw<T, B>( &mut self, queue_consumer: &mut Consumer, module_context: &mut T, before_batch: &mut fn(&mut B, &mut T, u32) -> Option<u32>, prepare: &mut fn(&mut B, &mut T, &RawObj, &Consumer) -> Result<bool, PrepareError>, after_batch: &mut fn(&mut B, &mut T, u32) -> Result<bool, PrepareError>, heartbeat: &mut fn(&mut B, &mut T) -> Result<(), PrepareError>, backend: &mut B, )
pub fn listen_queue<T, B>( &mut self, queue_consumer: &mut Consumer, module_context: &mut T, before_batch: &mut fn(&mut B, &mut T, u32) -> Option<u32>, prepare: &mut fn(&mut B, &mut T, &mut Individual, &Consumer) -> Result<bool, PrepareError>, after_batch: &mut fn(&mut B, &mut T, u32) -> Result<bool, PrepareError>, heartbeat: &mut fn(&mut B, &mut T) -> Result<(), PrepareError>, backend: &mut B, )
Source§impl Module
impl Module
pub fn prepare_queue(&mut self, veda_module: &mut dyn VedaQueueModule)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more