pub struct ThreadControl {
pub version: u16,
pub spool: Uuid,
pub actor: CollaborationActor,
pub authority_digest: ContentHash,
pub authority_envelope: Vec<u8>,
pub client_operation_id: Uuid,
pub occurred_at_ms: i64,
pub control: Control,
}Fields§
§version: u16§spool: Uuid§actor: CollaborationActorPortable original authority, independently checked by the admitting host. The envelope grants nothing merely because its digest is well formed.
client_operation_id: Uuid§occurred_at_ms: i64§control: ControlImplementations§
Source§impl ThreadControl
impl ThreadControl
Exact mutation whose original authority must be checked at admission.
pub fn property(&self) -> Property
pub fn encode(&self) -> Result<Vec<u8>>
pub fn decode(bytes: &[u8]) -> Result<Self>
pub fn validate_operation(&self, operation: &ThreadOperation) -> Result<()>
pub fn validate_parents( &self, genesis: &ThreadGenesis, parents: &[ThreadOperation], ) -> Result<()>
Trait Implementations§
Source§impl Clone for ThreadControl
impl Clone for ThreadControl
Source§fn clone(&self) -> ThreadControl
fn clone(&self) -> ThreadControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadControl
impl Debug for ThreadControl
Source§impl<'de> Deserialize<'de> for ThreadControl
impl<'de> Deserialize<'de> for ThreadControl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThreadControl
Source§impl PartialEq for ThreadControl
impl PartialEq for ThreadControl
Source§impl Serialize for ThreadControl
impl Serialize for ThreadControl
impl StructuralPartialEq for ThreadControl
Auto Trait Implementations§
impl Freeze for ThreadControl
impl RefUnwindSafe for ThreadControl
impl Send for ThreadControl
impl Sync for ThreadControl
impl Unpin for ThreadControl
impl UnsafeUnpin for ThreadControl
impl UnwindSafe for ThreadControl
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