pub trait RouterBuilderShardExt {
// Required methods
fn shard(self, shard: impl Into<ErasedShard>) -> Self;
fn discover_shards(self) -> Self;
}Available on crate feature
router only.Expand description
Registers shards on a RouterBuilder.
Required Methods§
Sourcefn shard(self, shard: impl Into<ErasedShard>) -> Self
fn shard(self, shard: impl Into<ErasedShard>) -> Self
Mounts a shard route.
Sourcefn discover_shards(self) -> Self
Available on crate feature discover only.
fn discover_shards(self) -> Self
discover only.Registers every shard linked into the binary.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl RouterBuilderShardExt for RouterBuilder
impl RouterBuilderShardExt for RouterBuilder
fn shard(self, shard: impl Into<ErasedShard>) -> Self
Source§fn discover_shards(self) -> Self
fn discover_shards(self) -> Self
Available on crate feature
discover only.