pub struct AccountStream { /* private fields */ }Expand description
One externally authenticated private account stream. The SDK retains no signer and fails closed on any identity or sequence mismatch.
Implementations§
Source§impl AccountStream
impl AccountStream
pub fn market_id(&self) -> &str
pub fn wallet_address(&self) -> &str
Sourcepub async fn next_event(
&mut self,
) -> Result<Option<PlatformAccountEvent>, SdkError>
pub async fn next_event( &mut self, ) -> Result<Option<PlatformAccountEvent>, SdkError>
The first call returns the authenticated snapshot received during connection. Later calls return sequenced order, fill, heartbeat, or recovery-snapshot events.
pub async fn close(&mut self) -> Result<(), SdkError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AccountStream
impl !RefUnwindSafe for AccountStream
impl !UnwindSafe for AccountStream
impl Send for AccountStream
impl Sync for AccountStream
impl Unpin for AccountStream
impl UnsafeUnpin for AccountStream
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