pub struct BlockSynchronizerStatus { /* private fields */ }
Expand description
The status of the block synchronizer.
Implementations§
Source§impl BlockSynchronizerStatus
impl BlockSynchronizerStatus
Sourcepub fn new(
historical: Option<BlockSyncStatus>,
forward: Option<BlockSyncStatus>,
) -> Self
pub fn new( historical: Option<BlockSyncStatus>, forward: Option<BlockSyncStatus>, ) -> Self
Constructs a new BlockSynchronizerStatus
.
Sourcepub fn example() -> &'static Self
Available on crate feature json-schema
only.
pub fn example() -> &'static Self
json-schema
only.Returns an example BlockSynchronizerStatus
.
Sourcepub fn historical(&self) -> &Option<BlockSyncStatus>
Available on crate feature testing
only.
pub fn historical(&self) -> &Option<BlockSyncStatus>
testing
only.Returns status of the historical block sync.
Sourcepub fn forward(&self) -> &Option<BlockSyncStatus>
Available on crate feature testing
only.
pub fn forward(&self) -> &Option<BlockSyncStatus>
testing
only.Returns status of the forward block sync.
Trait Implementations§
Source§impl Clone for BlockSynchronizerStatus
impl Clone for BlockSynchronizerStatus
Source§fn clone(&self) -> BlockSynchronizerStatus
fn clone(&self) -> BlockSynchronizerStatus
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockSynchronizerStatus
impl Debug for BlockSynchronizerStatus
Source§impl Default for BlockSynchronizerStatus
impl Default for BlockSynchronizerStatus
Source§fn default() -> BlockSynchronizerStatus
fn default() -> BlockSynchronizerStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockSynchronizerStatus
impl<'de> Deserialize<'de> for BlockSynchronizerStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromBytes for BlockSynchronizerStatus
impl FromBytes for BlockSynchronizerStatus
Source§impl JsonSchema for BlockSynchronizerStatus
impl JsonSchema for BlockSynchronizerStatus
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for BlockSynchronizerStatus
impl PartialEq for BlockSynchronizerStatus
Source§impl Serialize for BlockSynchronizerStatus
impl Serialize for BlockSynchronizerStatus
Source§impl ToBytes for BlockSynchronizerStatus
impl ToBytes for BlockSynchronizerStatus
Source§fn write_bytes(&self, writer: &mut Vec<u8>) -> Result<(), Error>
fn write_bytes(&self, writer: &mut Vec<u8>) -> Result<(), Error>
Writes
&self
into a mutable writer
.Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Eq for BlockSynchronizerStatus
impl StructuralPartialEq for BlockSynchronizerStatus
Auto Trait Implementations§
impl Freeze for BlockSynchronizerStatus
impl RefUnwindSafe for BlockSynchronizerStatus
impl Send for BlockSynchronizerStatus
impl Sync for BlockSynchronizerStatus
impl Unpin for BlockSynchronizerStatus
impl UnwindSafe for BlockSynchronizerStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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