pub struct Runtime { /* private fields */ }Implementations§
Source§impl Runtime
impl Runtime
pub fn new() -> Self
pub fn with_name_prefix(&self, name_prefix: impl Into<Arc<str>>) -> Self
pub fn name_prefix(&self) -> &str
pub fn with_attributes(&self, attributes: Attributes) -> Self
pub fn attributes(&self) -> &Attributes
pub fn effective_attributes(&self, local: &Attributes) -> Attributes
pub fn shutdown(&self)
pub fn is_shutdown(&self) -> bool
pub fn active_streams(&self) -> usize
pub fn materialize<Mat: Send + 'static>( &self, graph: &RunnableGraph<Mat>, ) -> StreamResult<Mat>
pub fn schedule_once<F>(&self, delay: Duration, task: F) -> Cancellable
pub fn schedule_with_fixed_delay<F>( &self, initial_delay: Duration, delay: Duration, task: F, ) -> Cancellable
pub fn schedule_at_fixed_rate<F>( &self, initial_delay: Duration, interval: Duration, task: F, ) -> Cancellable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage