[][src]Struct grin_wallet_libwallet::api_impl::owner_updater::Updater

pub struct Updater<'a, L, C, K> where
    L: WalletLCProvider<'a, C, K>,
    C: NodeClient + 'a,
    K: Keychain + 'a, 
{ /* fields omitted */ }

Handles and launches a background update thread

Methods

impl<'a, L, C, K> Updater<'a, L, C, K> where
    L: WalletLCProvider<'a, C, K>,
    C: NodeClient + 'a,
    K: Keychain + 'a, 
[src]

pub fn new(
    wallet_inst: Arc<Mutex<Box<dyn WalletInst<'a, L, C, K>>>>,
    is_running: Arc<AtomicBool>
) -> Self
[src]

create a new updater

pub fn run(
    &self,
    frequency: Duration,
    keychain_mask: Option<SecretKey>,
    status_send_channel: &Option<Sender<StatusMessage>>
) -> Result<(), Error>
[src]

Start the updater at the given frequency

Auto Trait Implementations

impl<'a, L, C, K> !RefUnwindSafe for Updater<'a, L, C, K>

impl<'a, L, C, K> Send for Updater<'a, L, C, K>

impl<'a, L, C, K> Sync for Updater<'a, L, C, K>

impl<'a, L, C, K> Unpin for Updater<'a, L, C, K>

impl<'a, L, C, K> !UnwindSafe for Updater<'a, L, C, K>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> SafeBorrow<T> for T where
    T: ?Sized

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

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