pub enum VerifyOutcome<'a> {
Accept(&'a [u8]),
Reject(&'static str),
}Expand description
Result of checking an inbound broadcast frame.
Variants§
Accept(&'a [u8])
The inner JSON payload to decode (signature verified, or unsigned under a permissive policy).
Reject(&'static str)
Drop the message; the reason is a static string for logging.
Auto Trait Implementations§
impl<'a> Freeze for VerifyOutcome<'a>
impl<'a> RefUnwindSafe for VerifyOutcome<'a>
impl<'a> Send for VerifyOutcome<'a>
impl<'a> Sync for VerifyOutcome<'a>
impl<'a> Unpin for VerifyOutcome<'a>
impl<'a> UnsafeUnpin for VerifyOutcome<'a>
impl<'a> UnwindSafe for VerifyOutcome<'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