pub struct GateOptions {
pub spend_depth: Height,
pub own_change: bool,
pub allow_received: bool,
}Expand description
The gate’s two settings.
Fields§
§spend_depth: HeightSPEND_DEPTH, floor 1 (R3 (b)).
own_change: boolSPEND_OWN_CHANGE (R1 (b)): offer our own made change whose
creator’s word is pending.
allow_received: boolR1 (d): this one action named allowPending: received at the door.
Never read from the environment; off unless the caller says so.
Implementations§
Source§impl GateOptions
impl GateOptions
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
SPEND_DEPTH and SPEND_OWN_CHANGE (0, false, no, off turn
it off; anything else, or unset, leaves it on).
Sourcepub fn with_allow_received(self, allow: bool) -> Self
pub fn with_allow_received(self, allow: bool) -> Self
These settings, with the action’s word for R1 (d).
Trait Implementations§
Source§impl Clone for GateOptions
impl Clone for GateOptions
Source§impl Debug for GateOptions
impl Debug for GateOptions
Auto Trait Implementations§
impl Freeze for GateOptions
impl RefUnwindSafe for GateOptions
impl Send for GateOptions
impl Sync for GateOptions
impl Unpin for GateOptions
impl UnsafeUnpin for GateOptions
impl UnwindSafe for GateOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more