Struct anchor_client::Program [−][src]
pub struct Program { /* fields omitted */ }Expand description
Program is the primary client handle to be used to build and send requests.
Implementations
Returns a request builder.
Returns a request builder for program state.
Returns the account at the given address.
pub fn on<T: Event + AnchorDeserialize>(
&self,
f: impl Fn(&EventContext, T) + Send + 'static
) -> Result<EventHandle, ClientError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Program
impl !UnwindSafe for Program
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
