[][src]Struct lightning::ln::router::RouterReadArgs

pub struct RouterReadArgs {
    pub chain_monitor: Arc<dyn ChainWatchInterface>,
    pub logger: Arc<dyn Logger>,
}

Arguments for the creation of a Router that are not deserialized. At a high-level, the process for deserializing a Router and resuming normal operation is:

  1. Deserialize the Router by filling in this struct and calling ::read(reaser, args).
  2. Register the new Router with your ChainWatchInterface

Fields

chain_monitor: Arc<dyn ChainWatchInterface>

The ChainWatchInterface for use in the Router in the future.

No calls to the ChainWatchInterface will be made during deserialization.

logger: Arc<dyn Logger>

The Logger for use in the ChannelManager and which may be used to log information during deserialization.

Trait Implementations

impl<R: Read> ReadableArgs<R, RouterReadArgs> for Router[src]

Auto Trait Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Error = !

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.