pub struct Client { /* private fields */ }Expand description
Client for the syndicationd API.
Implementations§
Source§impl Client
impl Client
pub async fn health(&self) -> Result<Health, SyndApiError>
pub async fn shutdown_daemon(&self) -> Result<(), SyndApiError>
pub async fn daemon_status(&self) -> Result<DaemonStatusResponse, SyndApiError>
Source§impl Client
impl Client
pub async fn watch_feed_events(&self) -> Result<FeedEventWatch, SyndApiError>
Source§impl Client
impl Client
pub async fn fetch_subscription( &self, after: Option<String>, first: Option<i64>, ) -> Result<SubscriptionPayload, SyndApiError>
pub async fn subscribe_feed( &self, input: SubscribeFeedInput, ) -> Result<SubscribeFeedPayload, SyndApiError>
pub async fn unsubscribe_feed( &self, url: FeedUrl, ) -> Result<UnsubscribeFeedPayload, SyndApiError>
Source§impl Client
impl Client
pub async fn fetch_timeline_entries( &self, after: Option<String>, first: i64, ) -> Result<TimelineEntryConnection, SyndApiError>
pub async fn fetch_timeline_changes( &self, since: i64, first: i64, ) -> Result<TimelineChangesPayload, SyndApiError>
Source§impl Client
impl Client
pub async fn open_session( &self, request: OpenSessionRequest, ) -> Result<OpenSessionResponse, SyndApiError>
pub async fn close_session( &self, request: CloseSessionRequest, ) -> Result<CloseSessionResponse, SyndApiError>
pub async fn renew_session( &self, request: RenewSessionRequest, ) -> Result<RenewSessionResponse, SyndApiError>
Source§impl Client
impl Client
pub fn new(endpoint: Url, options: ClientOptions) -> Result<Self, SyndApiError>
pub fn new_unix( socket_path: impl AsRef<Path>, options: ClientOptions, ) -> Result<Self, SyndApiError>
pub fn set_credential( &mut self, credential: ApiCredential, ) -> Result<(), SyndApiError>
pub fn set_local_token(&mut self, token: &str) -> Result<(), SyndApiError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request