Trait Closable

Source
pub trait Closable {
    type ClosedEvent: Event + InitSpace;

    // Required method
    fn to_closed_event(
        &self,
        address: &Pubkey,
        reason: &str,
    ) -> Result<Self::ClosedEvent>;
}
Expand description

Closable Action.

Required Associated Types§

Source

type ClosedEvent: Event + InitSpace

Closed Event.

Required Methods§

Source

fn to_closed_event( &self, address: &Pubkey, reason: &str, ) -> Result<Self::ClosedEvent>

To closed event.

Implementors§