Skip to main content

HandlerContext

Trait HandlerContext 

Source
pub trait HandlerContext<'a, 'b, 'c>: Sized {
    // Required method
    fn from_entrypoint(
        program_id: &'a Address,
        accounts: &mut &'b [AccountView],
        instruction_data: &mut &'c [u8],
    ) -> Result<Self, Error>;
}

Required Methods§

Source

fn from_entrypoint( program_id: &'a Address, accounts: &mut &'b [AccountView], instruction_data: &mut &'c [u8], ) -> Result<Self, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> HandlerContext<'a, '_, '_> for ProgramIdArg<'a>

Source§

impl<'a, 'b, 'c, T, const N: usize> HandlerContext<'a, 'b, 'c> for Array<T, N>
where T: HandlerContext<'a, 'b, 'c> + Context,

Source§

impl<'b> HandlerContext<'_, 'b, '_> for Remaining<'b>

Source§

impl<'b, T> HandlerContext<'_, 'b, '_> for AccountIter<'b, T>

Source§

impl<'c, T> HandlerContext<'_, '_, 'c> for Arg<'c, T>
where T: AnyBitPattern,

Source§

impl<T> HandlerContext<'_, '_, '_> for BorshArg<T>