pub struct InlineClientRuntime {
pub client: InlineClient,
pub runner: ClientRunner,
}Expand description
Built client runtime before the runner is hosted.
Fields§
§client: InlineClientCloneable client handle.
runner: ClientRunnerSingle-owner client runner.
Implementations§
Source§impl InlineClientRuntime
impl InlineClientRuntime
Sourcepub fn split(self) -> (InlineClient, ClientRunner)
pub fn split(self) -> (InlineClient, ClientRunner)
Splits the runtime into handle and runner.
Sourcepub fn spawn(self) -> InlineClient
pub fn spawn(self) -> InlineClient
Spawns the runner on the current Tokio runtime and returns the handle.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InlineClientRuntime
impl !UnwindSafe for InlineClientRuntime
impl Freeze for InlineClientRuntime
impl Send for InlineClientRuntime
impl Sync for InlineClientRuntime
impl Unpin for InlineClientRuntime
impl UnsafeUnpin for InlineClientRuntime
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