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§
Sourcetype ClosedEvent: Event + InitSpace
type ClosedEvent: Event + InitSpace
Closed Event.
Required Methods§
Sourcefn to_closed_event(
&self,
address: &Pubkey,
reason: &str,
) -> Result<Self::ClosedEvent>
fn to_closed_event( &self, address: &Pubkey, reason: &str, ) -> Result<Self::ClosedEvent>
To closed event.