#[non_exhaustive]pub struct WaitpointSpec {
pub kind: WaitpointKind,
pub matcher: Vec<u8>,
pub hmac_token: WaitpointHmac,
}Expand description
One waitpoint inside a suspend request. suspend takes a
Vec<WaitpointSpec>; the resume condition (any / all) lives on
the enclosing suspend args in the Phase-1 contract.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: WaitpointKind§matcher: Vec<u8>§hmac_token: WaitpointHmacImplementations§
Source§impl WaitpointSpec
impl WaitpointSpec
pub fn new( kind: WaitpointKind, matcher: Vec<u8>, hmac_token: WaitpointHmac, ) -> Self
Trait Implementations§
Source§impl Clone for WaitpointSpec
impl Clone for WaitpointSpec
Source§fn clone(&self) -> WaitpointSpec
fn clone(&self) -> WaitpointSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitpointSpec
impl Debug for WaitpointSpec
Source§impl PartialEq for WaitpointSpec
impl PartialEq for WaitpointSpec
impl Eq for WaitpointSpec
impl StructuralPartialEq for WaitpointSpec
Auto Trait Implementations§
impl Freeze for WaitpointSpec
impl RefUnwindSafe for WaitpointSpec
impl Send for WaitpointSpec
impl Sync for WaitpointSpec
impl Unpin for WaitpointSpec
impl UnsafeUnpin for WaitpointSpec
impl UnwindSafe for WaitpointSpec
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