Struct ate::signature::SignaturePlugin
source · [−]pub struct SignaturePlugin { /* private fields */ }Implementations
sourceimpl SignaturePlugin
impl SignaturePlugin
pub fn new() -> SignaturePlugin
pub fn get_verified_signatures(
&self,
data_hash: &AteHash
) -> Option<&Vec<AteHash>>
pub fn has_public_key(&self, key_hash: &AteHash) -> bool
Trait Implementations
sourceimpl Clone for SignaturePlugin
impl Clone for SignaturePlugin
sourcefn clone(&self) -> SignaturePlugin
fn clone(&self) -> SignaturePlugin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SignaturePlugin
impl Debug for SignaturePlugin
sourceimpl EventDataTransformer for SignaturePlugin
impl EventDataTransformer for SignaturePlugin
fn clone_transformer(&self) -> Box<dyn EventDataTransformer>
sourcefn data_as_underlay(
&self,
_meta: &mut Metadata,
with: Bytes,
_session: &dyn AteSession,
_trans_meta: &TransactionMetadata
) -> Result<Bytes, TransformError>
fn data_as_underlay(
&self,
_meta: &mut Metadata,
with: Bytes,
_session: &dyn AteSession,
_trans_meta: &TransactionMetadata
) -> Result<Bytes, TransformError>
Callback when data is stored in the event
sourcefn data_as_overlay(
&self,
_meta: &Metadata,
with: Bytes,
_session: &dyn AteSession
) -> Result<Bytes, TransformError>
fn data_as_overlay(
&self,
_meta: &Metadata,
with: Bytes,
_session: &dyn AteSession
) -> Result<Bytes, TransformError>
Callback before data in an event is actually used by an actual user
sourceimpl EventMetadataLinter for SignaturePlugin
impl EventMetadataLinter for SignaturePlugin
fn clone_linter(&self) -> Box<dyn EventMetadataLinter>
sourcefn metadata_lint_many<'a>(
&self,
raw: &Vec<LintData<'a>>,
session: &dyn AteSession,
conversation: Option<&Arc<ConversationSession>>
) -> Result<Vec<CoreMetadata>, LintError>
fn metadata_lint_many<'a>(
&self,
raw: &Vec<LintData<'a>>,
session: &dyn AteSession,
conversation: Option<&Arc<ConversationSession>>
) -> Result<Vec<CoreMetadata>, LintError>
Called just before the metadata is pushed into the redo log
fn metadata_lint_event(
&self,
_meta: &Metadata,
_session: &dyn AteSession,
_trans_meta: &TransactionMetadata,
_type_code: &str
) -> Result<Vec<CoreMetadata>, LintError>
sourceimpl EventPlugin for SignaturePlugin
impl EventPlugin for SignaturePlugin
fn clone_plugin(&self) -> Box<dyn EventPlugin>
fn rebuild(
&mut self,
headers: &Vec<EventHeader>,
conversation: Option<&Arc<ConversationSession>>
) -> Result<(), SinkError>
fn root_keys(&self) -> Vec<PublicSignKey>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn set_root_keys(&mut self, _root_keys: &Vec<PublicSignKey>)
sourceimpl EventSink for SignaturePlugin
impl EventSink for SignaturePlugin
sourceimpl EventValidator for SignaturePlugin
impl EventValidator for SignaturePlugin
fn clone_validator(&self) -> Box<dyn EventValidator>
fn set_integrity_mode(&mut self, mode: TrustMode)
fn validator_name(&self) -> &str
fn validate(
&self,
_header: &EventHeader,
_conversation: Option<&Arc<ConversationSession>>
) -> Result<ValidationResult, ValidationError>
Auto Trait Implementations
impl RefUnwindSafe for SignaturePlugin
impl Send for SignaturePlugin
impl Sync for SignaturePlugin
impl Unpin for SignaturePlugin
impl UnwindSafe for SignaturePlugin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more