pub struct ServiceBuilder { /* private fields */ }Expand description
Service builder for creating Synapse services
Implementations§
Source§impl ServiceBuilder
impl ServiceBuilder
Sourcepub fn with_instance_id(self, instance_id: InstanceId) -> Self
pub fn with_instance_id(self, instance_id: InstanceId) -> Self
Set a specific instance ID (useful for testing)
Sourcepub fn with_http_endpoint(self, http_endpoint: impl Into<String>) -> Self
pub fn with_http_endpoint(self, http_endpoint: impl Into<String>) -> Self
Set the HTTP endpoint where this instance receives RPC traffic
Sourcepub fn with_gateway(self, gateway_url: impl Into<String>) -> Self
pub fn with_gateway(self, gateway_url: impl Into<String>) -> Self
Set the gateway URL for registration (plain HTTP, dev mode only)
Auto Trait Implementations§
impl Freeze for ServiceBuilder
impl RefUnwindSafe for ServiceBuilder
impl Send for ServiceBuilder
impl Sync for ServiceBuilder
impl Unpin for ServiceBuilder
impl UnsafeUnpin for ServiceBuilder
impl UnwindSafe 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