pub struct StoredOp {
pub op_id: OpId,
pub created_at: Timestamp,
}Expand description
An op that has been stored by the Kitsune host.
This is the basic unit of data that the host is expected to store. Whether that storage is persistent may depend on the use-case. While Kitsune is holding references by hash, the host is expected to store the actual data.
Fields§
§op_id: OpIdThe id of the op.
created_at: TimestampThe creation timestamp of the op.
This must be the same for everyone who sees this op.
Note that this means any op implementation must include a consistent timestamp in the op data so that it can be provided back to Kitsune.
Trait Implementations§
Source§impl Ord for StoredOp
impl Ord for StoredOp
Source§impl PartialOrd for StoredOp
impl PartialOrd for StoredOp
impl Eq for StoredOp
impl StructuralPartialEq for StoredOp
Auto Trait Implementations§
impl !Freeze for StoredOp
impl RefUnwindSafe for StoredOp
impl Send for StoredOp
impl Sync for StoredOp
impl Unpin for StoredOp
impl UnwindSafe for StoredOp
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