MARS documentation
Rust librariesmars-serverAnchor

mars-server · anchor::test_adapter

Public declarations and documentation for mars-server::anchor::test_adapter.

Package: mars-server · Workspace version: 0.1.0 · Module: anchor::test_adapter

This reference follows declared modules and public syntax, including public implementation methods. Function bodies and constant values are omitted. Feature conditions are retained. Private-module re-exports and trait resolution require the compiler; not every declaration is a root import.

Module condition

#[cfg(any(test, feature = "test-anchor"))]

anchor::test_adapter::DeterministicAnchorPort

Deterministic, idempotent adapter compiled only for tests or the explicit test-anchor feature. It performs no network I/O.

#[cfg(any(test, feature = "test-anchor"))]
#[derive(Default)]
pub struct DeterministicAnchorPort {

}

Source line: 14.

anchor::test_adapter::DeterministicAnchorPort::new

#[cfg(any(test, feature = "test-anchor"))]
#[must_use]
pub fn new() -> Self;

Source line: 20.

Source provenance

Source: mars-server/src/anchor/test_adapter.rs · SHA-256 caf8c8477aadc2f4790764d63ae046b5f7644cc0af4c1d1d4a5d488dd32401d0. Package overview.

On this page