[][src]Struct syncthing::Client

pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub fn new(api_key: impl Into<String>) -> Self[src]

pub fn new_with_hyper_client(
    client: HyperClient<HttpConnector>,
    api_key: impl Into<String>
) -> Self
[src]

pub fn new_with_authority(
    api_key: impl Into<String>,
    authority: Authority
) -> Self
[src]

pub fn new_with_hyper_client_and_authority(
    client: HyperClient<HttpConnector>,
    api_key: impl Into<String>,
    authority: Authority
) -> Self
[src]

pub async fn get_all_events<'_>(
    &'_ self,
    since: Option<u64>,
    limit: Option<u64>
) -> Fallible<Vec<Event>>
[src]

pub async fn get_events<'_>(
    &'_ self,
    since: Option<u64>,
    limit: Option<u64>,
    events: impl AsRef<[EventType]>
) -> Fallible<Vec<Event>>
[src]

pub fn subscribe_to(self, events: impl Into<Vec<EventType>>) -> EventStream[src]

pub fn subscribe_to_all(self) -> EventStream[src]

pub async fn get_system_connections<'_>(&'_ self) -> Fallible<Connections>[src]

pub async fn get_system_debug<'_>(&'_ self) -> Fallible<DebugInfo>[src]

pub async fn get_system_discovery<'_>(&'_ self) -> Fallible<Discovery>[src]

pub async fn get_system_log<'_>(&'_ self) -> Fallible<Log>[src]

pub async fn get_system_error<'_>(&'_ self) -> Fallible<Error>[src]

pub async fn get_system_ping<'_>(&'_ self) -> Fallible<Ping>[src]

pub async fn get_system_upgrade<'_>(&'_ self) -> Fallible<UpgradeInfo>[src]

pub async fn get_system_version<'_>(&'_ self) -> Fallible<Version>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

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 = 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.