pub struct ServiceBuilder { /* private fields */ }Implementations§
Source§impl ServiceBuilder
impl ServiceBuilder
Sourcepub fn methods(self, table: MethodTable) -> Self
pub fn methods(self, table: MethodTable) -> Self
The one source of method policy for every transport.
Sourcepub fn local(self, suite: &Suite, cfg: ServiceConfig, opts: HostOptions) -> Self
pub fn local(self, suite: &Suite, cfg: ServiceConfig, opts: HostOptions) -> Self
Host on the local transport. The allowlist in cfg is replaced by the one the method
table implies.
Sourcepub fn start(self) -> Result<Service, BuildError>
pub fn start(self) -> Result<Service, BuildError>
Open the configured transports. The remote state opens first (it fails without side
effects); the local host publishes service.json last.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceBuilder
impl !UnwindSafe for ServiceBuilder
impl Freeze for ServiceBuilder
impl Send for ServiceBuilder
impl Sync for ServiceBuilder
impl Unpin for ServiceBuilder
impl UnsafeUnpin for ServiceBuilder
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