Struct ockam::Executor [−][src]
Implementations
impl Executor
[src]
pub fn new() -> Executor
[src]
Create a new Executor
.
pub async fn receive(&'_ mut self) -> Option<Message>
[src]
pub fn new_context<S>(&self, address: S) -> Context where
S: ToString,
[src]
S: ToString,
Create a new Context
at the given address.
pub fn execute<F>(&mut self, future: F) -> Result<(), Error> where
F: Future + Send + 'static,
<F as Future>::Output: Send,
<F as Future>::Output: 'static,
[src]
F: Future + Send + 'static,
<F as Future>::Output: Send,
<F as Future>::Output: 'static,
pub fn register<S>(
&mut self,
address: S,
worker: Box<dyn Worker<Context = Context> + 'static, Global>
) -> Result<(), Error> where
S: ToString,
[src]
&mut self,
address: S,
worker: Box<dyn Worker<Context = Context> + 'static, Global>
) -> Result<(), Error> where
S: ToString,
Register a Handler at an address.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Executor
[src]
impl Send for Executor
[src]
impl !Sync for Executor
[src]
impl Unpin for Executor
[src]
impl !UnwindSafe for Executor
[src]
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,
pub 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.
pub 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>,