pub struct DocActorResult {
pub io_tasks: Vec<IoTask<DocumentIoTask>>,
pub outgoing_messages: Vec<DocToHubMsg>,
pub ephemeral_messages: Vec<Vec<u8>>,
pub change_events: Vec<DocumentChanged>,
pub stopped: bool,
pub peer_state_changes: HashMap<ConnectionId, PeerDocState>,
pub sync_message_stats: Vec<SyncMessageStat>,
pub pending_sync_messages: usize,
}Expand description
Result of processing a message or I/O completion.
Fields§
§io_tasks: Vec<IoTask<DocumentIoTask>>Document I/O tasks that need to be executed by the caller.
outgoing_messages: Vec<DocToHubMsg>Messages to send back to the main system.
ephemeral_messages: Vec<Vec<u8>>New ephemeral messages
change_events: Vec<DocumentChanged>Change events
stopped: boolWhether this document actor is stopped
peer_state_changes: HashMap<ConnectionId, PeerDocState>Connections which have changed state for this document
sync_message_stats: Vec<SyncMessageStat>Sync message statistics for observability
pending_sync_messages: usizeNumber of pending sync messages queued during Loading phase
Implementations§
Trait Implementations§
Source§impl Debug for DocActorResult
impl Debug for DocActorResult
Auto Trait Implementations§
impl Freeze for DocActorResult
impl RefUnwindSafe for DocActorResult
impl Send for DocActorResult
impl Sync for DocActorResult
impl Unpin for DocActorResult
impl UnsafeUnpin for DocActorResult
impl UnwindSafe for DocActorResult
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more