pub struct SyncActorOptions { /* private fields */ }Expand description
Options for spawning a SyncActor.
Examples
Using the default options.
use heph_rt::spawn::SyncActorOptions;
let opts = SyncActorOptions::default();Setting the name of the thread that runs the synchronous actor.
use heph_rt::spawn::SyncActorOptions;
let opts = SyncActorOptions::default().with_name("My sync actor".to_owned());Implementations
Trait Implementations
sourceimpl Debug for SyncActorOptions
impl Debug for SyncActorOptions
sourceimpl Default for SyncActorOptions
impl Default for SyncActorOptions
sourcefn default() -> SyncActorOptions
fn default() -> SyncActorOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SyncActorOptions
impl Send for SyncActorOptions
impl Sync for SyncActorOptions
impl Unpin for SyncActorOptions
impl UnwindSafe for SyncActorOptions
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