pub struct IncomingOperation<'a>(/* private fields */);Expand description
Untrusted operation before authenticated identity claims are checked.
Implementations§
Source§impl<'a> IncomingOperation<'a>
impl<'a> IncomingOperation<'a>
Sourcepub const fn new(operation: &'a OperationEnvelope) -> Self
pub const fn new(operation: &'a OperationEnvelope) -> Self
Wraps one structurally validated but still untrusted operation.
Sourcepub fn authenticate(
self,
auth: &AuthContext,
) -> Result<AuthenticatedOperation<'a>, ExecutionError>
pub fn authenticate( self, auth: &AuthContext, ) -> Result<AuthenticatedOperation<'a>, ExecutionError>
Checks every claimed identity against the connection-derived context.
§Errors
Returns ExecutionError when tenant, actor, or device claims differ.
Trait Implementations§
Source§impl<'a> Clone for IncomingOperation<'a>
impl<'a> Clone for IncomingOperation<'a>
Source§fn clone(&self) -> IncomingOperation<'a>
fn clone(&self) -> IncomingOperation<'a>
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 moreimpl<'a> Copy for IncomingOperation<'a>
Auto Trait Implementations§
impl<'a> Freeze for IncomingOperation<'a>
impl<'a> RefUnwindSafe for IncomingOperation<'a>
impl<'a> Send for IncomingOperation<'a>
impl<'a> Sync for IncomingOperation<'a>
impl<'a> Unpin for IncomingOperation<'a>
impl<'a> UnsafeUnpin for IncomingOperation<'a>
impl<'a> UnwindSafe for IncomingOperation<'a>
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