[−][src]Struct syncthing::Client
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]
client: HyperClient<HttpConnector>,
api_key: impl Into<String>
) -> Self
pub fn new_with_authority(
api_key: impl Into<String>,
authority: Authority
) -> Self
[src]
api_key: impl Into<String>,
authority: Authority
) -> Self
pub fn new_with_hyper_client_and_authority(
client: HyperClient<HttpConnector>,
api_key: impl Into<String>,
authority: Authority
) -> Self
[src]
client: HyperClient<HttpConnector>,
api_key: impl Into<String>,
authority: Authority
) -> Self
pub async fn get_all_events<'_>(
&'_ self,
since: Option<u64>,
limit: Option<u64>
) -> Fallible<Vec<Event>>
[src]
&'_ self,
since: Option<u64>,
limit: Option<u64>
) -> Fallible<Vec<Event>>
pub async fn get_events<'_>(
&'_ self,
since: Option<u64>,
limit: Option<u64>,
events: impl AsRef<[EventType]>
) -> Fallible<Vec<Event>>
[src]
&'_ self,
since: Option<u64>,
limit: Option<u64>,
events: impl AsRef<[EventType]>
) -> Fallible<Vec<Event>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,