pub struct SyncRuntime;Expand description
A runtime to execute sync code without async context.
This type should be used only when exporting the sync api of a library using maybe-fut to create an interoperable async/sync api.
Can also be run using block_on function.
Implementations§
Auto Trait Implementations§
impl Freeze for SyncRuntime
impl RefUnwindSafe for SyncRuntime
impl Send for SyncRuntime
impl Sync for SyncRuntime
impl Unpin for SyncRuntime
impl UnwindSafe for SyncRuntime
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