pub struct FunPayPoller {Show 16 fields
pub gateway: Arc<dyn FunpayGateway>,
pub golden_key: String,
pub user_agent: String,
pub id: i64,
pub username: Option<String>,
pub csrf_token: String,
pub phpsessid: Option<String>,
pub events_tx: Sender<Event>,
pub storage: Arc<dyn StateStorage>,
pub polling_interval: Duration,
pub error_retry_delay: Duration,
pub last_msg_event_tag: String,
pub last_order_event_tag: String,
pub last_messages: HashMap<i64, (i64, i64, Option<String>)>,
pub last_messages_ids: HashMap<i64, i64>,
pub saved_orders: HashMap<OrderId, OrderShortcut>,
}Fields§
§gateway: Arc<dyn FunpayGateway>§golden_key: String§user_agent: String§id: i64§username: Option<String>§csrf_token: String§phpsessid: Option<String>§events_tx: Sender<Event>§storage: Arc<dyn StateStorage>§polling_interval: Duration§error_retry_delay: Duration§last_msg_event_tag: String§last_order_event_tag: String§last_messages: HashMap<i64, (i64, i64, Option<String>)>§last_messages_ids: HashMap<i64, i64>§saved_orders: HashMap<OrderId, OrderShortcut>Implementations§
Source§impl FunPayPoller
impl FunPayPoller
pub async fn start(self) -> Result<(), FunPayError>
Auto Trait Implementations§
impl Freeze for FunPayPoller
impl !RefUnwindSafe for FunPayPoller
impl Send for FunPayPoller
impl Sync for FunPayPoller
impl Unpin for FunPayPoller
impl !UnwindSafe for FunPayPoller
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