pub struct Runtime { /* private fields */ }
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn builder() -> RuntimeBuilder
pub fn builder() -> RuntimeBuilder
return a RuntimeBuilder
instance
has to
- select a allocation mode
- select a running mode
Sourcepub fn new() -> Result<Self, RuntimeError>
pub fn new() -> Result<Self, RuntimeError>
create a new Runtime
instance with the default configuration which includes:
- system allocator mode
- the default running mode
§Errors
if the runtime initialization failed, it will return RuntimeError::InitializationFailure
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 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