pub struct Engine { /* private fields */ }Implementations§
Source§impl Engine
impl Engine
Sourcepub async fn start(
settings: &Settings,
app: Arc<dyn Application>,
store_factory: Arc<dyn MessageStoreFactory>,
log_factory: Arc<dyn LogFactory>,
) -> Result<Engine>
pub async fn start( settings: &Settings, app: Arc<dyn Application>, store_factory: Arc<dyn MessageStoreFactory>, log_factory: Arc<dyn LogFactory>, ) -> Result<Engine>
Create all configured sessions and start their network activity: acceptors listen, initiators dial (and keep re-dialing).
Sourcepub fn session(
&self,
begin_string: &str,
sender_comp_id: &str,
target_comp_id: &str,
) -> Option<SessionHandle>
pub fn session( &self, begin_string: &str, sender_comp_id: &str, target_comp_id: &str, ) -> Option<SessionHandle>
Handle for the session matching this BeginString + CompID pair.
pub fn sessions(&self) -> impl Iterator<Item = &SessionHandle>
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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