pub enum OpenAck {
Ok,
Failed(u8),
Eof,
}Expand description
Outcome of reading the single open ack byte on the dialer side.
Returned by read_open_ack. Only OpenAck::Ok means the
end-to-end path is up; everything else is a failure the dialer must
retry.
Variants§
Ok
The far relay reported the end-to-end path is established
(OPEN_ACK_OK). The next byte read belongs to the remote
enclave’s Noise handshake.
Failed(u8)
The far relay reported failure: either OPEN_ACK_FAILED or some
other unexpected byte. The carried byte is surfaced for logging.
Eof
The stream hit EOF before any ack byte arrived (the relay closed the connection). Treated as a failure.
Trait Implementations§
impl Copy for OpenAck
impl Eq for OpenAck
impl StructuralPartialEq for OpenAck
Auto Trait Implementations§
impl Freeze for OpenAck
impl RefUnwindSafe for OpenAck
impl Send for OpenAck
impl Sync for OpenAck
impl Unpin for OpenAck
impl UnsafeUnpin for OpenAck
impl UnwindSafe for OpenAck
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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