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
Source§fn clone(&self) -> TestAuthorship
fn clone(&self) -> TestAuthorship
Returns a duplicate of the value. Read more
1.0.0 · 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 TestAuthorship
impl Debug for TestAuthorship
Source§impl Default for TestAuthorship
impl Default for TestAuthorship
Source§fn default() -> TestAuthorship
fn default() -> TestAuthorship
Returns the “default value” for a type. Read more
impl Copy 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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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.