#[non_exhaustive]pub enum Input {
Message(Bytes),
Persisted(PersistId),
StorageFailed(PersistId),
}Expand description
Something that happened outside the replica, fed with crate::Replica::handle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Message(Bytes)
A network message from a peer, exactly as received.
Persisted(PersistId)
Every Action::Persist with an id up to and including id is durable.
StorageFailed(PersistId)
Persisting id failed. The replica fences itself: it reports outstanding proposals
as Action::Dropped, ignores further events and refuses requests with
Error::Fenced. Restart it from its durable records.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Input
impl Forget for Input
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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