#[non_exhaustive]pub enum ConnectionInput {
OpenAdmission {
epoch: ConnectionEpoch,
},
Cancel {
epoch: ConnectionEpoch,
operation: OperationId,
},
DeadlineElapsed {
epoch: ConnectionEpoch,
operation: OperationId,
now: Moment,
},
ReplyMalformed {
epoch: ConnectionEpoch,
},
BeginDrain {
epoch: ConnectionEpoch,
},
CloseRequested {
epoch: ConnectionEpoch,
reason: CloseReason,
},
EpochClosed {
epoch: ConnectionEpoch,
},
}Expand description
An observation or command applied to the deterministic epoch machine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OpenAdmission
The protocol session owner completed establishment.
Fields
§
epoch: ConnectionEpochExact epoch whose protocol session was established.
Cancel
Explicitly cancel local operation ownership.
DeadlineElapsed
A scheduled absolute deadline was observed.
Fields
§
epoch: ConnectionEpochEpoch named by the timer event.
§
operation: OperationIdOperation whose deadline was scheduled.
ReplyMalformed
The adapter rejected a complete inbound frame as malformed.
Fields
§
epoch: ConnectionEpochEpoch that produced the malformed frame.
BeginDrain
Close admission, then finish already accepted work.
Fields
§
epoch: ConnectionEpochExact epoch whose admission should close before draining.
CloseRequested
Force closure of this epoch.
Fields
§
epoch: ConnectionEpochEpoch named by the requester or capability.
§
reason: CloseReasonMechanical closure reason.
EpochClosed
Confirm that the physical capability is closed.
Fields
§
epoch: ConnectionEpochEpoch whose capability closed.
Trait Implementations§
Source§impl Clone for ConnectionInput
impl Clone for ConnectionInput
impl Copy for ConnectionInput
Source§impl Debug for ConnectionInput
impl Debug for ConnectionInput
impl Eq for ConnectionInput
Source§impl PartialEq for ConnectionInput
impl PartialEq for ConnectionInput
impl StructuralPartialEq for ConnectionInput
Auto Trait Implementations§
impl Freeze for ConnectionInput
impl RefUnwindSafe for ConnectionInput
impl Send for ConnectionInput
impl Sync for ConnectionInput
impl Unpin for ConnectionInput
impl UnsafeUnpin for ConnectionInput
impl UnwindSafe for ConnectionInput
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