pub struct Op {
pub ty: UUID,
pub object: UUID,
pub event: UUID,
pub location: UUID,
pub atoms: SmallVec<[Atom; 3]>,
pub term: Terminator,
}Expand description
An Op (operation) in RON describes part of the initial state of an object, or a specific action on an object, or some other part related to the Swarm protocol (such as a query or handshake).
Every op consists of four UUIDs (type, object, event and re), a (possibly empty) sequence of atoms, and a terminator.
Fields§
§ty: UUIDOp type.
object: UUIDObject this Op modifies.
event: UUIDEvent timestamp
location: UUIDLocation/field inside the object.
atoms: SmallVec<[Atom; 3]>Op payload.
term: TerminatorOp terminator.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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