pub struct TestAuthorship;Expand description
Authorship of test writes, sealed and hashed with one fixed test key for every audience. It opens headers it sealed itself and checks no signature: the database checks roots and openings; sync checks signatures (D9).
Implementations§
Source§impl TestAuthorship
impl TestAuthorship
Sourcepub fn write(record: &WriteRecord) -> WriteAuthorship
pub fn write(record: &WriteRecord) -> WriteAuthorship
The evidence and hashers a stream of this record carries.
Trait Implementations§
Source§impl Authorship for TestAuthorship
impl Authorship for TestAuthorship
Source§fn header(&self, evidence: &WriteEvidence) -> Result<WriteHeaderFrame, DbError>
fn header(&self, evidence: &WriteEvidence) -> Result<WriteHeaderFrame, DbError>
Open the evidence’s sealed header with the store key its prefix names,
and verify its header signature with the signing key of its device’s
member, current in the header’s recorded prefix (D9).
Source§impl Clone for TestAuthorship
impl Clone for TestAuthorship
impl Copy for TestAuthorship
Source§impl Debug for TestAuthorship
impl Debug for TestAuthorship
Auto Trait Implementations§
impl Freeze for TestAuthorship
impl RefUnwindSafe for TestAuthorship
impl Send for TestAuthorship
impl Sync for TestAuthorship
impl Unpin for TestAuthorship
impl UnsafeUnpin for TestAuthorship
impl UnwindSafe for TestAuthorship
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.