FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReconnectingPeer

    struct · ferroui-designer-collaboration-host · v0.5.0

    struct ReconnectingPeer
    

    A durable offline outbox is derived from the operation set and the last acknowledged server vector. Repeating an exchange after a dropped response is safe and never deletes local work.

    View source

    Members

    new

    fn new(endpoint: Endpoint, joined: JoinedRoom) -> Result<Self>
    

    Source

    with_transport

    fn with_transport(endpoint: Endpoint, joined: JoinedRoom, transport: Box<dyn PeerTransport>) -> Result<Self>
    

    Source

    restore

    fn restore(path: impl AsRef<Path>) -> Result<Self>
    

    Source

    set_checkpoint_path

    fn set_checkpoint_path(self: &mut Self, path: impl AsRef<Path>) -> Result<()>
    

    Source

    checkpoint

    fn checkpoint(self: &Self) -> PeerCheckpoint
    

    Source

    document

    fn document(self: &Self) -> &DocumentReplica
    

    Source

    role

    fn role(self: &Self) -> Role
    

    Source

    pending_operations

    fn pending_operations(self: &Self) -> usize
    

    Source

    last_error

    fn last_error(self: &Self) -> Option<&HostError>
    

    Source

    submit

    fn submit(self: &mut Self, label: impl Into<String>, edits: Vec<SharedEdit>) -> Result<()>
    

    Source

    sync

    fn sync(self: &mut Self, presence: Option<Presence>) -> Result<ExchangeReply>
    

    Source

    poll

    fn poll(self: &mut Self, presence: Option<Presence>) -> Option<Result<ExchangeReply>>
    

    Source

    rebase

    fn rebase(self: &mut Self, state: RoomState, expected_remote: &str, resolved: &str) -> Result<()>
    

    An explicit CAS rebase onto a new epoch. The caller supplies the remote source they reviewed and a resolved source; stale resolutions fail without losing the old outbox.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • Same
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.