pub struct AgentState {
pub upstream: UpstreamClient,
pub prefixes: Vec<Arc<PrefixState>>,
}Fields§
§upstream: UpstreamClient§prefixes: Vec<Arc<PrefixState>>Implementations§
Source§impl AgentState
impl AgentState
pub fn find_prefix(&self, key: &str) -> Option<&Arc<PrefixState>>
pub fn find_prefix_for_listing<'a>( &'a self, prefix: &str, ) -> Option<&'a Arc<PrefixState>>
pub fn all_ready(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for AgentState
impl !UnwindSafe for AgentState
impl Freeze for AgentState
impl Send for AgentState
impl Sync for AgentState
impl Unpin for AgentState
impl UnsafeUnpin for AgentState
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