Enum z4_engine::SimpleGameCalls
source · pub enum SimpleGameCalls {
Show 26 variants
AcceptRoom(AcceptRoomCall),
ClaimRoom(ClaimRoomCall),
CreateRoom(CreateRoomCall),
IsSequencer(IsSequencerCall),
JoinRoom(JoinRoomCall),
MinStaking(MinStakingCall),
NextRoomId(NextRoomIdCall),
OverRoomWithThreshold(OverRoomWithThresholdCall),
OverRoomWithZk(OverRoomWithZkCall),
Owner(OwnerCall),
PlayerLimit(PlayerLimitCall),
PlayerRoomLock(PlayerRoomLockCall),
RenounceOwnership(RenounceOwnershipCall),
RestartRoom(RestartRoomCall),
RoomInfo(RoomInfoCall),
Rooms(RoomsCall),
Sequencers(SequencersCall),
SetMinStaking(SetMinStakingCall),
SetPlayerLimit(SetPlayerLimitCall),
SetPlayerRoomLock(SetPlayerRoomLockCall),
SetToken(SetTokenCall),
StakeSequencer(StakeSequencerCall),
StartRoom(StartRoomCall),
Token(TokenCall),
TransferOwnership(TransferOwnershipCall),
UnstakeSequencer(UnstakeSequencerCall),
}Expand description
Container type for all of the contract’s call
Variants§
AcceptRoom(AcceptRoomCall)
ClaimRoom(ClaimRoomCall)
CreateRoom(CreateRoomCall)
IsSequencer(IsSequencerCall)
JoinRoom(JoinRoomCall)
MinStaking(MinStakingCall)
NextRoomId(NextRoomIdCall)
OverRoomWithThreshold(OverRoomWithThresholdCall)
OverRoomWithZk(OverRoomWithZkCall)
Owner(OwnerCall)
PlayerLimit(PlayerLimitCall)
PlayerRoomLock(PlayerRoomLockCall)
RenounceOwnership(RenounceOwnershipCall)
RestartRoom(RestartRoomCall)
RoomInfo(RoomInfoCall)
Rooms(RoomsCall)
Sequencers(SequencersCall)
SetMinStaking(SetMinStakingCall)
SetPlayerLimit(SetPlayerLimitCall)
SetPlayerRoomLock(SetPlayerRoomLockCall)
SetToken(SetTokenCall)
StakeSequencer(StakeSequencerCall)
StartRoom(StartRoomCall)
Token(TokenCall)
TransferOwnership(TransferOwnershipCall)
UnstakeSequencer(UnstakeSequencerCall)
Trait Implementations§
source§impl AbiDecode for SimpleGameCalls
impl AbiDecode for SimpleGameCalls
source§impl AbiEncode for SimpleGameCalls
impl AbiEncode for SimpleGameCalls
source§impl Clone for SimpleGameCalls
impl Clone for SimpleGameCalls
source§fn clone(&self) -> SimpleGameCalls
fn clone(&self) -> SimpleGameCalls
Returns a copy 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 SimpleGameCalls
impl Debug for SimpleGameCalls
source§impl Display for SimpleGameCalls
impl Display for SimpleGameCalls
source§impl From<AcceptRoomCall> for SimpleGameCalls
impl From<AcceptRoomCall> for SimpleGameCalls
source§fn from(value: AcceptRoomCall) -> Self
fn from(value: AcceptRoomCall) -> Self
Converts to this type from the input type.
source§impl From<ClaimRoomCall> for SimpleGameCalls
impl From<ClaimRoomCall> for SimpleGameCalls
source§fn from(value: ClaimRoomCall) -> Self
fn from(value: ClaimRoomCall) -> Self
Converts to this type from the input type.
source§impl From<CreateRoomCall> for SimpleGameCalls
impl From<CreateRoomCall> for SimpleGameCalls
source§fn from(value: CreateRoomCall) -> Self
fn from(value: CreateRoomCall) -> Self
Converts to this type from the input type.
source§impl From<IsSequencerCall> for SimpleGameCalls
impl From<IsSequencerCall> for SimpleGameCalls
source§fn from(value: IsSequencerCall) -> Self
fn from(value: IsSequencerCall) -> Self
Converts to this type from the input type.
source§impl From<JoinRoomCall> for SimpleGameCalls
impl From<JoinRoomCall> for SimpleGameCalls
source§fn from(value: JoinRoomCall) -> Self
fn from(value: JoinRoomCall) -> Self
Converts to this type from the input type.
source§impl From<MinStakingCall> for SimpleGameCalls
impl From<MinStakingCall> for SimpleGameCalls
source§fn from(value: MinStakingCall) -> Self
fn from(value: MinStakingCall) -> Self
Converts to this type from the input type.
source§impl From<NextRoomIdCall> for SimpleGameCalls
impl From<NextRoomIdCall> for SimpleGameCalls
source§fn from(value: NextRoomIdCall) -> Self
fn from(value: NextRoomIdCall) -> Self
Converts to this type from the input type.
source§impl From<OverRoomWithThresholdCall> for SimpleGameCalls
impl From<OverRoomWithThresholdCall> for SimpleGameCalls
source§fn from(value: OverRoomWithThresholdCall) -> Self
fn from(value: OverRoomWithThresholdCall) -> Self
Converts to this type from the input type.
source§impl From<OverRoomWithZkCall> for SimpleGameCalls
impl From<OverRoomWithZkCall> for SimpleGameCalls
source§fn from(value: OverRoomWithZkCall) -> Self
fn from(value: OverRoomWithZkCall) -> Self
Converts to this type from the input type.
source§impl From<OwnerCall> for SimpleGameCalls
impl From<OwnerCall> for SimpleGameCalls
source§impl From<PlayerLimitCall> for SimpleGameCalls
impl From<PlayerLimitCall> for SimpleGameCalls
source§fn from(value: PlayerLimitCall) -> Self
fn from(value: PlayerLimitCall) -> Self
Converts to this type from the input type.
source§impl From<PlayerRoomLockCall> for SimpleGameCalls
impl From<PlayerRoomLockCall> for SimpleGameCalls
source§fn from(value: PlayerRoomLockCall) -> Self
fn from(value: PlayerRoomLockCall) -> Self
Converts to this type from the input type.
source§impl From<RenounceOwnershipCall> for SimpleGameCalls
impl From<RenounceOwnershipCall> for SimpleGameCalls
source§fn from(value: RenounceOwnershipCall) -> Self
fn from(value: RenounceOwnershipCall) -> Self
Converts to this type from the input type.
source§impl From<RestartRoomCall> for SimpleGameCalls
impl From<RestartRoomCall> for SimpleGameCalls
source§fn from(value: RestartRoomCall) -> Self
fn from(value: RestartRoomCall) -> Self
Converts to this type from the input type.
source§impl From<RoomInfoCall> for SimpleGameCalls
impl From<RoomInfoCall> for SimpleGameCalls
source§fn from(value: RoomInfoCall) -> Self
fn from(value: RoomInfoCall) -> Self
Converts to this type from the input type.
source§impl From<RoomsCall> for SimpleGameCalls
impl From<RoomsCall> for SimpleGameCalls
source§impl From<SequencersCall> for SimpleGameCalls
impl From<SequencersCall> for SimpleGameCalls
source§fn from(value: SequencersCall) -> Self
fn from(value: SequencersCall) -> Self
Converts to this type from the input type.
source§impl From<SetMinStakingCall> for SimpleGameCalls
impl From<SetMinStakingCall> for SimpleGameCalls
source§fn from(value: SetMinStakingCall) -> Self
fn from(value: SetMinStakingCall) -> Self
Converts to this type from the input type.
source§impl From<SetPlayerLimitCall> for SimpleGameCalls
impl From<SetPlayerLimitCall> for SimpleGameCalls
source§fn from(value: SetPlayerLimitCall) -> Self
fn from(value: SetPlayerLimitCall) -> Self
Converts to this type from the input type.
source§impl From<SetPlayerRoomLockCall> for SimpleGameCalls
impl From<SetPlayerRoomLockCall> for SimpleGameCalls
source§fn from(value: SetPlayerRoomLockCall) -> Self
fn from(value: SetPlayerRoomLockCall) -> Self
Converts to this type from the input type.
source§impl From<SetTokenCall> for SimpleGameCalls
impl From<SetTokenCall> for SimpleGameCalls
source§fn from(value: SetTokenCall) -> Self
fn from(value: SetTokenCall) -> Self
Converts to this type from the input type.
source§impl From<StakeSequencerCall> for SimpleGameCalls
impl From<StakeSequencerCall> for SimpleGameCalls
source§fn from(value: StakeSequencerCall) -> Self
fn from(value: StakeSequencerCall) -> Self
Converts to this type from the input type.
source§impl From<StartRoomCall> for SimpleGameCalls
impl From<StartRoomCall> for SimpleGameCalls
source§fn from(value: StartRoomCall) -> Self
fn from(value: StartRoomCall) -> Self
Converts to this type from the input type.
source§impl From<TokenCall> for SimpleGameCalls
impl From<TokenCall> for SimpleGameCalls
source§impl From<TransferOwnershipCall> for SimpleGameCalls
impl From<TransferOwnershipCall> for SimpleGameCalls
source§fn from(value: TransferOwnershipCall) -> Self
fn from(value: TransferOwnershipCall) -> Self
Converts to this type from the input type.
source§impl From<UnstakeSequencerCall> for SimpleGameCalls
impl From<UnstakeSequencerCall> for SimpleGameCalls
source§fn from(value: UnstakeSequencerCall) -> Self
fn from(value: UnstakeSequencerCall) -> Self
Converts to this type from the input type.
source§impl Hash for SimpleGameCalls
impl Hash for SimpleGameCalls
source§impl PartialEq for SimpleGameCalls
impl PartialEq for SimpleGameCalls
source§fn eq(&self, other: &SimpleGameCalls) -> bool
fn eq(&self, other: &SimpleGameCalls) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Tokenizable for SimpleGameCalls
impl Tokenizable for SimpleGameCalls
source§fn from_token(token: Token) -> Result<Self, InvalidOutputType>
fn from_token(token: Token) -> Result<Self, InvalidOutputType>
Converts a
Token into expected type.source§fn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Eq for SimpleGameCalls
impl StructuralPartialEq for SimpleGameCalls
impl TokenizableItem for SimpleGameCalls
Auto Trait Implementations§
impl !Freeze for SimpleGameCalls
impl RefUnwindSafe for SimpleGameCalls
impl Send for SimpleGameCalls
impl Sync for SimpleGameCalls
impl Unpin for SimpleGameCalls
impl UnwindSafe for SimpleGameCalls
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> Detokenize for Twhere
T: Tokenizable,
impl<T> Detokenize for Twhere
T: Tokenizable,
source§fn from_tokens(tokens: Vec<Token>) -> Result<T, InvalidOutputType>
fn from_tokens(tokens: Vec<Token>) -> Result<T, InvalidOutputType>
Creates a new instance from parsed ABI tokens.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.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> 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 moresource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.source§impl<T> Tokenize for Twhere
T: Tokenizable,
impl<T> Tokenize for Twhere
T: Tokenizable,
source§fn into_tokens(self) -> Vec<Token>
fn into_tokens(self) -> Vec<Token>
Converts
self into a Vec<Token>.