Struct vapcore_sync::LightSync [−][src]
Service for light synchronization.
Implementations
impl LightSync[src]
pub fn new<L>(params: LightSyncParams<L>) -> Result<Self, Error> where
L: AsLightClient + Provider + Sync + Send + 'static, [src]
L: AsLightClient + Provider + Sync + Send + 'static,
Create a new light sync service.
Trait Implementations
impl Deref for LightSync[src]
type Target = dyn SyncInfo
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl LightNetworkDispatcher for LightSync[src]
fn with_context<F, T>(&self, f: F) -> Option<T> where
F: FnOnce(&dyn BasicContext) -> T, [src]
F: FnOnce(&dyn BasicContext) -> T,
impl LightSyncInfo for LightSync[src]
fn highest_block(&self) -> Option<u64>[src]
fn start_block(&self) -> u64[src]
fn is_major_importing(&self) -> bool[src]
impl LightSyncProvider for LightSync[src]
fn peer_numbers(&self) -> PeerNumbers[src]
fn peers(&self) -> Vec<PeerInfo>[src]
fn enode(&self) -> Option<String>[src]
fn network_id(&self) -> u64[src]
fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats>[src]
impl ManageNetwork for LightSync[src]
fn accept_unreserved_peers(&self)[src]
fn deny_unreserved_peers(&self)[src]
fn remove_reserved_peer(&self, peer: String) -> Result<(), String>[src]
fn add_reserved_peer(&self, peer: String) -> Result<(), String>[src]
fn start_network(&self)[src]
fn stop_network(&self)[src]
fn num_peers_range(&self) -> RangeInclusive<u32>[src]
fn with_proto_context(
&self,
proto: ProtocolId,
f: &mut dyn FnMut(&dyn NetworkContext)
)[src]
&self,
proto: ProtocolId,
f: &mut dyn FnMut(&dyn NetworkContext)
)
Auto Trait Implementations
impl !RefUnwindSafe for LightSync
impl Send for LightSync
impl Sync for LightSync
impl Unpin for LightSync
impl !UnwindSafe for LightSync
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,