pub struct SetCode<S: State = Empty>(/* private fields */);Expand description
State transition - sets the code field to Set
Trait Implementations§
Source§impl<S: State> State for SetCode<S>
impl<S: State> State for SetCode<S>
type Code = Set<code>
type Available = <S as State>::Available
type Disabled = <S as State>::Disabled
type ForAccount = <S as State>::ForAccount
type CreatedBy = <S as State>::CreatedBy
type CreatedAt = <S as State>::CreatedAt
type Uses = <S as State>::Uses
Auto Trait Implementations§
impl<S> Freeze for SetCode<S>
impl<S> RefUnwindSafe for SetCode<S>
impl<S> Send for SetCode<S>
impl<S> Sync for SetCode<S>
impl<S> Unpin for SetCode<S>
impl<S> UnwindSafe for SetCode<S>
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