pub struct OpenState {
pub sync: bool,
pub subscribers: usize,
pub handles: usize,
}
Expand description
The state for an open replica.
Fields§
§sync: bool
Whether to accept sync requests for this replica.
subscribers: usize
How many event subscriptions are open
handles: usize
By how many handles the replica is currently held open
Trait Implementations§
source§impl<'de> Deserialize<'de> for OpenState
impl<'de> Deserialize<'de> for OpenState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for OpenState
impl PartialEq for OpenState
impl Copy for OpenState
impl Eq for OpenState
impl StructuralPartialEq for OpenState
Auto Trait Implementations§
impl Freeze for OpenState
impl RefUnwindSafe for OpenState
impl Send for OpenState
impl Sync for OpenState
impl Unpin for OpenState
impl UnwindSafe for OpenState
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more