pub enum SimnetEvent {
Show 18 variants
Ready,
Connected(String),
Aborted(String),
Shutdown,
ClockUpdate(Clock),
EpochInfoUpdate(EpochInfo),
BlockHashExpired,
InfoLog(DateTime<Local>, String),
ErrorLog(DateTime<Local>, String),
WarnLog(DateTime<Local>, String),
DebugLog(DateTime<Local>, String),
PluginLoaded(String),
TransactionReceived(DateTime<Local>, VersionedTransaction),
TransactionProcessed(DateTime<Local>, TransactionMetadata, Option<TransactionError>),
AccountUpdate(DateTime<Local>, Pubkey),
TaggedProfile {
result: ProfileResult,
tag: String,
timestamp: DateTime<Local>,
},
RunbookStarted(String),
RunbookCompleted(String),
}Variants§
Ready
Connected(String)
Aborted(String)
Shutdown
ClockUpdate(Clock)
EpochInfoUpdate(EpochInfo)
BlockHashExpired
InfoLog(DateTime<Local>, String)
ErrorLog(DateTime<Local>, String)
WarnLog(DateTime<Local>, String)
DebugLog(DateTime<Local>, String)
PluginLoaded(String)
TransactionReceived(DateTime<Local>, VersionedTransaction)
TransactionProcessed(DateTime<Local>, TransactionMetadata, Option<TransactionError>)
AccountUpdate(DateTime<Local>, Pubkey)
TaggedProfile
RunbookStarted(String)
RunbookCompleted(String)
Implementations§
Source§impl SimnetEvent
impl SimnetEvent
pub fn info<S>(msg: S) -> Self
pub fn warn<S>(msg: S) -> Self
pub fn error<S>(msg: S) -> Self
pub fn debug<S>(msg: S) -> Self
pub fn transaction_processed( meta: TransactionMetadata, err: Option<TransactionError>, ) -> Self
pub fn transaction_received(tx: VersionedTransaction) -> Self
pub fn account_update(pubkey: Pubkey) -> Self
pub fn tagged_profile(result: ProfileResult, tag: String) -> Self
pub fn account_update_msg(&self) -> String
pub fn epoch_info_update_msg(&self) -> String
pub fn plugin_loaded_msg(&self) -> String
pub fn clock_update_msg(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimnetEvent
impl RefUnwindSafe for SimnetEvent
impl Send for SimnetEvent
impl Sync for SimnetEvent
impl Unpin for SimnetEvent
impl UnwindSafe for SimnetEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more