pub enum Plan {
Send(Request<Vec<u8>>),
DryRun(Request<Vec<u8>>),
}Expand description
What the gate decided, with the request already built.
This is the only place in the crate that decides whether something is sent.
Variants§
Send(Request<Vec<u8>>)
A read, or a write the user confirmed.
DryRun(Request<Vec<u8>>)
A write without confirmation. Print it; send nothing.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn decide(
op: &Operation,
answers: &Answers,
request: Request<Vec<u8>>,
) -> Self
pub fn decide( op: &Operation, answers: &Answers, request: Request<Vec<u8>>, ) -> Self
The gate: a read runs on sight, a write runs once it is confirmed and every gate it names is answered.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Plan
impl !RefUnwindSafe for Plan
impl !UnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
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