Struct barter_data::exchange::PingInterval
source · pub struct PingInterval {
pub interval: Interval,
pub ping: fn() -> WsMessage,
}Expand description
Defines the frequency and construction function for custom
WebSocket pings - used for exchanges
that require additional application-level pings.
Fields§
§interval: Interval§ping: fn() -> WsMessageTrait Implementations§
Auto Trait Implementations§
impl Freeze for PingInterval
impl !RefUnwindSafe for PingInterval
impl Send for PingInterval
impl Sync for PingInterval
impl Unpin for PingInterval
impl !UnwindSafe for PingInterval
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