[−][src]Struct aeron_rs::concurrent::agent_runner::AgentRunner
Methods
impl<A: 'static + Send + Sync + Agent, I: 'static + Send + Sync + Strategy> AgentRunner<A, I>
[src]
pub fn new(
agent: Arc<Mutex<A>>,
idle_strategy: Arc<I>,
exception_handler: ErrorHandler,
name: &str
) -> Self
[src]
agent: Arc<Mutex<A>>,
idle_strategy: Arc<I>,
exception_handler: ErrorHandler,
name: &str
) -> Self
pub fn name(&self) -> String
[src]
Name given to the thread running the agent.
@return the name given to the thread running the agent.
pub fn set_name(&mut self, new_name: &str)
[src]
pub fn start(this: Self) -> Result<AgentStopper, AeronError>
[src]
Start the Agent running
Will spawn a std::thread. Returns closure which is once called will shutdown the runner.
pub fn run(&mut self, stop_rx: Receiver<bool>)
[src]
Run the Agent duty cycle until closed
Auto Trait Implementations
impl<A, I> RefUnwindSafe for AgentRunner<A, I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<A, I> Send for AgentRunner<A, I>
impl<A, I> Sync for AgentRunner<A, I>
impl<A, I> Unpin for AgentRunner<A, I>
impl<A, I> UnwindSafe for AgentRunner<A, I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,