pub struct ShardRoute { /* private fields */ }Available on crate feature
router only.Implementations§
Source§impl ShardRoute
impl ShardRoute
Sourcepub fn new(shard: impl Into<ErasedShard>) -> Self
pub fn new(shard: impl Into<ErasedShard>) -> Self
Builds the route that serves a shard.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShardRoute
impl RefUnwindSafe for ShardRoute
impl Send for ShardRoute
impl Sync for ShardRoute
impl Unpin for ShardRoute
impl UnsafeUnpin for ShardRoute
impl UnwindSafe for ShardRoute
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