[][src]Struct cw_controllers::Hooks

pub struct Hooks<'a>(_);

Implementations

impl<'a> Hooks<'a>[src]

pub const fn new(storage_key: &'a str) -> Self[src]

pub fn add_hook(
    &self,
    storage: &mut dyn Storage,
    addr: HumanAddr
) -> Result<(), HookError>
[src]

pub fn remove_hook(
    &self,
    storage: &mut dyn Storage,
    addr: HumanAddr
) -> Result<(), HookError>
[src]

pub fn prepare_hooks<F: Fn(HumanAddr) -> StdResult<CosmosMsg>>(
    &self,
    storage: &dyn Storage,
    prep: F
) -> StdResult<Vec<CosmosMsg>>
[src]

pub fn handle_add_hook(
    &self,
    admin: &Admin<'_>,
    deps: DepsMut<'_>,
    info: MessageInfo,
    addr: HumanAddr
) -> Result<HandleResponse, HookError>
[src]

pub fn handle_remove_hook(
    &self,
    admin: &Admin<'_>,
    deps: DepsMut<'_>,
    info: MessageInfo,
    addr: HumanAddr
) -> Result<HandleResponse, HookError>
[src]

pub fn query_hooks(&self, deps: Deps<'_>) -> StdResult<HooksResponse>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Hooks<'a>[src]

impl<'a> Send for Hooks<'a>[src]

impl<'a> Sync for Hooks<'a>[src]

impl<'a> Unpin for Hooks<'a>[src]

impl<'a> UnwindSafe for Hooks<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.