pub struct BackendStates(/* private fields */);Implementations§
Source§impl BackendStates
impl BackendStates
pub fn new() -> Self
pub fn contain(&self, hash_code: u64) -> bool
pub fn add_backend(&mut self, addr: Address)
pub fn remove_backend(&mut self, addr: &Address) -> bool
pub fn set_backend_valid(&mut self, addr: &Address, valid: bool)
pub fn get_backend_valid(&self, addr: &Address) -> Option<bool>
pub fn get_backend(&self, addr: &Address) -> Option<&BackendState>
pub fn get_backend_mut(&mut self, addr: &Address) -> Option<&mut BackendState>
pub fn get_backends(&self) -> &[BackendState]
pub fn get_backends_mut(&mut self) -> &mut [BackendState]
Trait Implementations§
Source§impl Default for BackendStates
impl Default for BackendStates
Source§fn default() -> BackendStates
fn default() -> BackendStates
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackendStates
impl RefUnwindSafe for BackendStates
impl Send for BackendStates
impl Sync for BackendStates
impl Unpin for BackendStates
impl UnwindSafe for BackendStates
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