pub struct Service;Expand description
Starts the in-app devtools service. A namespace, not a value — the running
service is owned through its ServiceHandle.
Implementations§
Source§impl Service
impl Service
Sourcepub fn start<B: DevtoolsBackend>(
backend: B,
app: AppInfo,
) -> Result<ServiceHandle>
pub fn start<B: DevtoolsBackend>( backend: B, app: AppInfo, ) -> Result<ServiceHandle>
Binds an ephemeral loopback port and starts serving, with
ServiceConfig::default.
§Errors
The io::Error from binding 127.0.0.1:0 or from building the
internal runtime. A shell should treat a failure here as “no devtools
this run” and carry on — the service is never load-bearing for the app.
Sourcepub fn start_with_config<B: DevtoolsBackend>(
backend: B,
app: AppInfo,
config: ServiceConfig,
) -> Result<ServiceHandle>
pub fn start_with_config<B: DevtoolsBackend>( backend: B, app: AppInfo, config: ServiceConfig, ) -> Result<ServiceHandle>
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
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