[][src]Trait gio::NetworkMonitorExt

pub trait NetworkMonitorExt: 'static {
    fn can_reach<P: IsA<SocketConnectable>, Q: IsA<Cancellable>>(
        &self,
        connectable: &P,
        cancellable: Option<&Q>
    ) -> Result<(), Error>;
fn can_reach_async<P: IsA<SocketConnectable>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        connectable: &P,
        cancellable: Option<&Q>,
        callback: R
    );
fn can_reach_async_future<P: IsA<SocketConnectable> + Clone + 'static>(
        &self,
        connectable: &P
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn get_network_available(&self) -> bool;
fn connect_network_changed<F: Fn(&Self, bool) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_network_available_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn can_reach<P: IsA<SocketConnectable>, Q: IsA<Cancellable>>(
    &self,
    connectable: &P,
    cancellable: Option<&Q>
) -> Result<(), Error>

fn can_reach_async<P: IsA<SocketConnectable>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    connectable: &P,
    cancellable: Option<&Q>,
    callback: R
)

fn can_reach_async_future<P: IsA<SocketConnectable> + Clone + 'static>(
    &self,
    connectable: &P
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

fn get_network_available(&self) -> bool

fn connect_network_changed<F: Fn(&Self, bool) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_network_available_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<NetworkMonitor>> NetworkMonitorExt for O[src]

Loading content...