pub struct UnitRecord {
pub id: String,
pub scopes: UnitScopes,
pub explicit: bool,
pub status: UnitStatus,
pub reason_code: Option<String>,
pub cursor: Option<i64>,
pub bootstrap_state: Option<String>,
pub seeded: Vec<String>,
pub echo: Option<Vec<EchoRecord>>,
}Expand description
§4.1 one registered unit as the client persists it.
Fields§
§id: String§4.1: derived from the scope map.
scopes: UnitScopes§explicit: boolAn explicit subscribe holds the unit; window bases hold it through
the window registry (§4.1 references).
status: UnitStatus§reason_code: Option<String>§10 code when not active, or sync.cursor_expired after a reset.
cursor: Option<i64>Absent while the unit is live (§4.5); otherwise -1, the pin, or the
post-bootstrap cursor P.
bootstrap_state: Option<String>Opaque resume token from SUB_END (§4.7); present mid-bootstrap.
seeded: Vec<String>Tables that received a segment in the current bootstrap (§5.6).
echo: Option<Vec<EchoRecord>>The echo persisted at the last SUB_END (§4.4).
Implementations§
Source§impl UnitRecord
impl UnitRecord
Sourcepub fn bootstrapping(&self) -> bool
pub fn bootstrapping(&self) -> bool
§4.1: a catching-up unit holding cursor -1 or a resume token.
Trait Implementations§
Source§impl Clone for UnitRecord
impl Clone for UnitRecord
Source§impl Debug for UnitRecord
impl Debug for UnitRecord
Source§impl<'de> Deserialize<'de> for UnitRecord
impl<'de> Deserialize<'de> for UnitRecord
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
impl Eq for UnitRecord
Source§impl PartialEq for UnitRecord
impl PartialEq for UnitRecord
Source§impl Serialize for UnitRecord
impl Serialize for UnitRecord
impl StructuralPartialEq for UnitRecord
Auto Trait Implementations§
impl Forget for UnitRecord
impl Freeze for UnitRecord
impl Move for UnitRecord
impl RefUnwindSafe for UnitRecord
impl Send for UnitRecord
impl Sync for UnitRecord
impl Unpin for UnitRecord
impl UnsafeUnpin for UnitRecord
impl UnwindSafe for UnitRecord
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