Skip to main content

ManagedBacktestSession

Struct ManagedBacktestSession 

Source
pub struct ManagedBacktestSession { /* private fields */ }
Expand description

A session that reconnects on its own.

  1. Self::start it.
  2. Call subscribe_* for the notifications you need.
  3. Drive it: read Self::next_event, and answer each ManagedEvent::ReadyForContinue with one Self::send_continue or Self::send_continue_to. Never answer ManagedEvent::Paused: a ReadyForContinue follows it, and answering both sends two continues. Self::run_to_completion runs this loop for you.
  4. Self::shutdown it. Dropping it instead cancels the session without waiting for its tasks to stop.

See the module docs for what happens when a connection drops.

Implementations§

Source§

impl ManagedBacktestSession

Source

pub async fn start( url: String, api_key: String, create: CreateBacktestSessionRequest, ) -> Result<Self, ManagedSessionError>

Create a session and return once this client is attached to it on the session’s own endpoint.

url may be a bare host (see StartSessionParams::url). Build create with crate::CreateSession and into_request. Use Self::start_with_params for extra headers or your own cancellation token.

§Errors
Source

pub async fn start_with_params( params: StartSessionParams, reconnect_coordinator: Option<Arc<ReconnectCoordinator>>, ) -> Result<Self, ManagedSessionError>

Like Self::start, from explicit StartSessionParams. Pass None for reconnect_coordinator; it is internal plumbing for parallel runs.

A create that leaves disconnect_timeout_secs unset gets DEFAULT_DISCONNECT_TIMEOUT_SECS, so the server keeps the session while the client reconnects.

§Errors

As Self::start, plus ManagedSessionError::Cancelled if StartSessionParams::parent_cancel fires first.

Source

pub fn session_info(&self) -> &SessionInfo

Metadata reported by the server when the session was created.

Source

pub fn rpc(&self) -> &RpcClient

RPC client (confirmed commitment) for the session’s chain state at its current slot; serves from the first ReadyForContinue until Completed, and 502s after.

Source

pub fn set_completion_drain_timeout(&mut self, idle_timeout: Duration)

Override the completion-drain idle timeout (default 60 s). The drain gives up only after this long with no trailing notification; it does not cap total drain time.

Source

pub fn subscribe_transactions(&mut self, program_ids: Vec<Address>)

Subscribe to every transaction that mentions any of program_ids. Each arrives as ManagedEvent::Transaction, with program logs in meta.log_messages.

Every subscribe_* call opens one WebSocket on the session’s RPC endpoint; the next send_continue waits until it is connected.

Source

pub fn subscribe_account_diffs(&mut self, program_ids: Vec<Address>)

Subscribe to changes of every account owned by any of program_ids. Each change arrives as ManagedEvent::AccountDiff. To follow single accounts across reconnects, subscribe to their owner program and keep the diffs for their addresses. crate::subscribe_account_diffs follows single accounts but does not reconnect.

Source

pub fn subscribe_actions(&mut self)

Subscribe to the results of the pre-scheduled actions in the create request. Each arrives as ManagedEvent::ActionResult.

Source

pub fn subscribe_replacements(&mut self)

Subscribe to the reroute results for each original swap: re-quotes, venue probes and the original swaps replayed beside them. One stream carries all three, as ManagedEvent::Replacement.

Source

pub fn subscribe_diagnostics(&mut self)

Subscribe to the samples of the diagnostic probes in the create request. Each arrives as ManagedEvent::Diagnostic.

Source

pub async fn next_event(&mut self) -> Result<ManagedEvent, ManagedSessionError>

Wait for the next event. See ManagedEvent for the order events arrive in.

§Errors
Source

pub async fn send_continue( &mut self, params: ContinueParams, ) -> Result<(), ManagedSessionError>

Wait until the session control channel and every subscription are connected, then send a continue. Build params with crate::Continue.

Call this once per ManagedEvent::ReadyForContinue.

§Errors
Source

pub async fn send_continue_to( &mut self, params: ContinueToParams, ) -> Result<(), ManagedSessionError>

Wait until the session control channel and every subscription are connected, then send a continueTo: execute through params.slot, or with batch_index, up to just before that batch of it. Call this once per ManagedEvent::ReadyForContinue.

The session then sends ManagedEvent::Paused, where you can read state, and ManagedEvent::ReadyForContinue, which you answer. Rules for params:

  • slot must be after the last executed slot. Otherwise next_event returns an InvalidRequest ManagedEvent::Error and the session stays where it is.
  • slot must have a block. A skipped slot has none, and the session does not stop at it: it runs on to the end of the range.
  • With a ManagedEvent::DiscoveryBatch, pass its slot and batch_index to pause just before the matching batch.

To run your transactions just before slot n, pause at n - 1, then send them with the next continue. They run and commit before slot n’s block:

use simulator_client::{Continue, ContinueToParams, ManagedBacktestSession, ManagedEvent};
use solana_transaction::versioned::VersionedTransaction;

async fn run_before(
    session: &mut ManagedBacktestSession,
    n: u64,
    tx: &VersionedTransaction,
) -> Result<(), Box<dyn std::error::Error>> {
    let pause = ContinueToParams { slot: n - 1, batch_index: None };
    session.send_continue_to(pause).await?;
    loop {
        match session.next_event().await? {
            ManagedEvent::ReadyForContinue => break,
            ManagedEvent::Error(err) => return Err(err.into()),
            _ => {}
        }
    }
    let step = Continue::builder().build().push_transaction(tx)?.into_params();
    session.send_continue(step).await?;
    Ok(())
}

If slot n - 1 may be skipped, or to skip the round trip, schedule the transaction instead: a ScheduledAction with a BeforeSlot anchor and ActionKind::Send.

§Errors

As Self::send_continue.

Source

pub async fn wait_until_ready(&mut self) -> Result<(), ManagedSessionError>

Wait for the first ReadyForContinue, from which the session’s RPC endpoint serves the state before the start slot executes (the end of slot start_slot - 1). Earlier events (only Status in practice) are discarded.

§Errors

ManagedSessionError::CompletedBeforeReady, ManagedSessionError::Remote on an Error event, or any error of Self::next_event. The session is not shut down; call Self::shutdown.

Source

pub async fn run_to_completion( self, step: ContinueParams, on_event: impl FnMut(ManagedEvent), ) -> Result<Option<SessionSummary>, ManagedSessionError>

On every ReadyForContinue, send step.clone() until Completed; every other event, Paused included, goes to on_event. Any Error event, terminal or not, stops the loop and returns Remote. Always shuts the session down before returning. A caller that already consumed a ready (e.g. via Self::wait_until_ready) sends its first Self::send_continue itself.

Returns the summary carried by Completed.

§Errors

ManagedSessionError::Remote on an Error event, or any error of Self::next_event and Self::send_continue.

Source

pub async fn shutdown(self)

Cancel the session, closing it on the server, and wait until its connections have stopped.

Trait Implementations§

Source§

impl Drop for ManagedBacktestSession

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for ManagedBacktestSession

§

impl !UnwindSafe for ManagedBacktestSession

§

impl Forget for ManagedBacktestSession

§

impl Freeze for ManagedBacktestSession
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const dyn RpcSender + Sync + Send is !null: Freeze, PhantomData<dyn RpcSender + Sync + Send>: Freeze, *const ArcInner<Chan<ContinueParams, Semaphore>> is !null: Freeze, PhantomData<ArcInner<Chan<ContinueParams, Semaphore>>>: Freeze, *const ArcInner<Chan<ContinueToParams, Semaphore>> is !null: Freeze, PhantomData<ArcInner<Chan<ContinueToParams, Semaphore>>>: Freeze, *const ArcInner<Chan<ControlEvent, Semaphore>> is !null: Freeze, PhantomData<ArcInner<Chan<ControlEvent, Semaphore>>>: Freeze, *const ArcInner<Shared<ConnectionStatus>> is !null: Freeze, PhantomData<ArcInner<Shared<ConnectionStatus>>>: Freeze, *const ArcInner<Inner<Result<(), ManagedSessionError>>> is !null: Freeze, PhantomData<ArcInner<Inner<Result<(), ManagedSessionError>>>>: Freeze, *const Header is !null: Freeze, PhantomData<()>: Freeze, PhantomData<SubscriptionHandle>: Freeze, *const ArcInner<TreeNode> is !null: Freeze, PhantomData<ArcInner<TreeNode>>: Freeze, PhantomData<ManagedEvent>: Freeze, NonZero<u16>: Freeze, *const ArcInner<ReconnectCoordinator> is !null: Freeze, PhantomData<ArcInner<ReconnectCoordinator>>: Freeze, *const ArcInner<SubscriptionDiagnostics> is !null: Freeze, PhantomData<ArcInner<SubscriptionDiagnostics>>: Freeze,

§

impl Move for ManagedBacktestSession

§

impl Send for ManagedBacktestSession
where RawVecInner: Send, BoxRaw<dyn RpcSender + Sync + Send>: Send, Arc<Chan<ContinueParams, Semaphore>>: Send, Arc<Chan<ContinueToParams, Semaphore>>: Send, Arc<Chan<ControlEvent, Semaphore>>: Send, Arc<Shared<ConnectionStatus>>: Send, Arc<Inner<Result<(), ManagedSessionError>>>: Send, JoinHandle<()>: Send, Arc<Chan<SubscriptionNotification, Semaphore>>: Send, Arc<TreeNode>: Send, NodeRef<Owned, Address, SetValZST, LeafOrInternal>: Send, BoxRaw<(Address, SetValZST)>: Send, BoxRaw<RerouteStatsReport>: Send, BoxRaw<EncodedConfirmedTransactionWithStatusMeta>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, BoxRaw<ReplacementNotification>: Send, NonZero<u16>: Send, Arc<ReconnectCoordinator>: Send, Arc<SubscriptionDiagnostics>: Send,

§

impl Sync for ManagedBacktestSession
where RawVecInner: Sync, BoxRaw<dyn RpcSender + Sync + Send>: Sync, Arc<Chan<ContinueParams, Semaphore>>: Sync, Arc<Chan<ContinueToParams, Semaphore>>: Sync, Arc<Chan<ControlEvent, Semaphore>>: Sync, Arc<Shared<ConnectionStatus>>: Sync, Arc<Inner<Result<(), ManagedSessionError>>>: Sync, JoinHandle<()>: Sync, Arc<Chan<SubscriptionNotification, Semaphore>>: Sync, Arc<TreeNode>: Sync, NodeRef<Owned, Address, SetValZST, LeafOrInternal>: Sync, BoxRaw<(Address, SetValZST)>: Sync, BoxRaw<RerouteStatsReport>: Sync, BoxRaw<EncodedConfirmedTransactionWithStatusMeta>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, BoxRaw<ReplacementNotification>: Sync, NonZero<u16>: Sync, Arc<ReconnectCoordinator>: Sync, Arc<SubscriptionDiagnostics>: Sync,

§

impl Unpin for ManagedBacktestSession

§

impl UnsafeUnpin for ManagedBacktestSession
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const dyn RpcSender + Sync + Send is !null: UnsafeUnpin, PhantomData<dyn RpcSender + Sync + Send>: UnsafeUnpin, *const ArcInner<Chan<ContinueParams, Semaphore>> is !null: UnsafeUnpin, PhantomData<ArcInner<Chan<ContinueParams, Semaphore>>>: UnsafeUnpin, *const ArcInner<Chan<ContinueToParams, Semaphore>> is !null: UnsafeUnpin, PhantomData<ArcInner<Chan<ContinueToParams, Semaphore>>>: UnsafeUnpin, *const ArcInner<Chan<ControlEvent, Semaphore>> is !null: UnsafeUnpin, PhantomData<ArcInner<Chan<ControlEvent, Semaphore>>>: UnsafeUnpin, *const ArcInner<Shared<ConnectionStatus>> is !null: UnsafeUnpin, PhantomData<ArcInner<Shared<ConnectionStatus>>>: UnsafeUnpin, *const ArcInner<Inner<Result<(), ManagedSessionError>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner<Result<(), ManagedSessionError>>>>: UnsafeUnpin, *const Header is !null: UnsafeUnpin, PhantomData<()>: UnsafeUnpin, PhantomData<SubscriptionHandle>: UnsafeUnpin, *const ArcInner<TreeNode> is !null: UnsafeUnpin, PhantomData<ArcInner<TreeNode>>: UnsafeUnpin, PhantomData<ManagedEvent>: UnsafeUnpin, NonZeroU16Inner: UnsafeUnpin, *const ArcInner<ReconnectCoordinator> is !null: UnsafeUnpin, PhantomData<ArcInner<ReconnectCoordinator>>: UnsafeUnpin, *const ArcInner<SubscriptionDiagnostics> is !null: UnsafeUnpin, PhantomData<ArcInner<SubscriptionDiagnostics>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more