pub struct ActorOptions { /* private fields */ }Expand description
Implementations
sourceimpl ActorOptions
impl ActorOptions
sourcepub const fn with_priority(self, priority: Priority) -> Self
pub const fn with_priority(self, priority: Priority) -> Self
Set the scheduling priority.
sourcepub const fn is_ready(&self) -> bool
pub const fn is_ready(&self) -> bool
Returns true if the actor is ready to run when spawned.
See mark_ready for more information.
sourcepub const fn mark_ready(self, ready: bool) -> Self
pub const fn mark_ready(self, ready: bool) -> Self
This option will marks the actor as ready to run (or not) when spawned.
By default newly spawned actors will be considered to be ready to run
once they are spawned. However some actors might not want to run
immediately and wait for an external event before running. Such an
external event can for example be a TcpStream becoming ready to read
or write.
Trait Implementations
sourceimpl Clone for ActorOptions
impl Clone for ActorOptions
sourcefn clone(&self) -> ActorOptions
fn clone(&self) -> ActorOptions
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ActorOptions
impl Debug for ActorOptions
sourceimpl Default for ActorOptions
impl Default for ActorOptions
sourcefn default() -> ActorOptions
fn default() -> ActorOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ActorOptions
impl Send for ActorOptions
impl Sync for ActorOptions
impl Unpin for ActorOptions
impl UnwindSafe for ActorOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more