pub struct Conformance { /* private fields */ }Available on crate feature
client only.Expand description
Drives a peer through the checks.
Implementations§
Source§impl Conformance
impl Conformance
Sourcepub fn new(versions_url: Url, token: CredentialsToken) -> Self
pub fn new(versions_url: Url, token: CredentialsToken) -> Self
A run against versions_url, authenticating with token.
token should be the CREDENTIALS_TOKEN_C of an existing registration — the runner reads
the peer’s data, which requires being registered with it.
Sourcepub fn with_quirks(self, quirks: Quirks) -> Self
pub fn with_quirks(self, quirks: Quirks) -> Self
Applies the peer’s known quirks, so the run reports real problems rather than known ones.
Sourcepub const fn with_page_limit(self, limit: u64) -> Self
pub const fn with_page_limit(self, limit: u64) -> Self
How many objects to ask for per page. Small by default: this is a check, not a crawl.
Sourcepub const fn with_max_clock_skew(self, skew: Duration) -> Self
pub const fn with_max_clock_skew(self, skew: Duration) -> Self
How far the peer’s clock may be from ours before the timestamp check complains.
Sourcepub const fn with_auth_checks(self, check: bool) -> Self
pub const fn with_auth_checks(self, check: bool) -> Self
Whether to send the two deliberately-rejected requests that check authentication.
On by default. Turn it off against a peer whose intrusion detection would rather not see a failed authentication from a partner.
Trait Implementations§
Source§impl Clone for Conformance
impl Clone for Conformance
Source§fn clone(&self) -> Conformance
fn clone(&self) -> Conformance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Conformance
impl RefUnwindSafe for Conformance
impl Send for Conformance
impl Sync for Conformance
impl Unpin for Conformance
impl UnsafeUnpin for Conformance
impl UnwindSafe for Conformance
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