pub struct SlotMap { /* private fields */ }Implementations§
Source§impl SlotMap
impl SlotMap
pub fn new() -> Self
pub fn endpoint(&self, slot: u16) -> Option<&Endpoint>
Sourcepub fn update_slots(
&mut self,
reply: &Value,
fallback_host: &str,
) -> Result<(), Error>
pub fn update_slots( &mut self, reply: &Value, fallback_host: &str, ) -> Result<(), Error>
Atomic refresh: malformed maps never destroy the existing topology.
pub fn update_shards( &mut self, reply: &Value, fallback_host: &str, ) -> Result<(), Error>
pub fn apply_redirect(&mut self, redirect: &Redirect) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Forget for SlotMap
impl Freeze for SlotMap
impl RefUnwindSafe for SlotMap
impl Send for SlotMap
impl Sync for SlotMap
impl Unpin for SlotMap
impl UnsafeUnpin for SlotMap
impl UnwindSafe for SlotMap
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