[][src]Struct termscp::activity_manager::ActivityManager

pub struct ActivityManager { /* fields omitted */ }

ActivityManager

The activity manager takes care of running activities and handling them until the application has ended

Implementations

impl ActivityManager[src]

pub fn new(
    local_dir: &PathBuf,
    interval: Duration
) -> Result<ActivityManager, ()>
[src]

new

Initializes a new Activity Manager

pub fn set_filetransfer_params(
    &mut self,
    address: String,
    port: u16,
    protocol: FileTransferProtocol,
    username: Option<String>,
    password: Option<String>
)
[src]

set_filetransfer_params

Set file transfer params

pub fn run(&mut self, launch_activity: NextActivity)[src]

run

Loop for activity manager. You need to provide the activity to start with Returns the exitcode

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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,