pub struct ControlResponder {
pub crypto: ControlCrypto,
pub session_id: Uuid,
}Expand description
Control responder to validate envelopes and generate authenticated acks.
Fields§
§crypto: ControlCrypto§session_id: UuidImplementations§
Source§impl ControlResponder
impl ControlResponder
pub fn new(session_id: Uuid, crypto: ControlCrypto) -> Self
pub fn verify(&self, env: &ControlEnvelope) -> Result<(), HandshakeError>
pub fn ack( &self, seq: u64, ok: bool, detail: Option<String>, ) -> Result<Acknowledge, HandshakeError>
Auto Trait Implementations§
impl Freeze for ControlResponder
impl RefUnwindSafe for ControlResponder
impl Send for ControlResponder
impl Sync for ControlResponder
impl Unpin for ControlResponder
impl UnwindSafe for ControlResponder
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