Struct misskey::WebSocketClient
source · [−]pub struct WebSocketClient { /* private fields */ }
websocket-client
only.Expand description
Asynchronous WebSocket-based client for Misskey.
WebSocketClient
can be constructed using WebSocketClient::connect
or
WebSocketClientBuilder
.
The latter is more flexible and intuitive.
You do not have to wrap this in Arc
and Mutex
to share it because WebSocketClient
is already Clone
and every methods of WebSocketClient
takes &self
, i.e. they does not require mutability.
Implementations
sourceimpl WebSocketClient
impl WebSocketClient
sourcepub async fn connect(url: Url) -> Result<WebSocketClient, Error>
pub async fn connect(url: Url) -> Result<WebSocketClient, Error>
Connects to Misskey using WebSocket, and returns WebSocketClient
.
sourcepub async fn connect_with_config(
url: Url,
reconnect_config: ReconnectConfig
) -> Result<WebSocketClient, Error>
pub async fn connect_with_config(
url: Url,
reconnect_config: ReconnectConfig
) -> Result<WebSocketClient, Error>
Connects to Misskey using WebSocket with a given reconnect configuration, and returns WebSocketClient
.
sourcepub fn builder<T>(url: T) -> WebSocketClientBuilder where
T: TryInto<Url>,
<T as TryInto<Url>>::Error: Into<Error>,
pub fn builder<T>(url: T) -> WebSocketClientBuilder where
T: TryInto<Url>,
<T as TryInto<Url>>::Error: Into<Error>,
Creates a new builder instance with url
.
All configurations are set to default.
This function is identical to WebSocketClientBuilder::new
.
sourcepub fn subnote<E, Id>(
&self,
note_id: Id
) -> Pin<Box<dyn Future<Output = Result<SubNote<E>, Error>> + Send + 'static, Global>> where
E: SubNoteEvent,
Id: Into<String>,
pub fn subnote<E, Id>(
&self,
note_id: Id
) -> Pin<Box<dyn Future<Output = Result<SubNote<E>, Error>> + Send + 'static, Global>> where
E: SubNoteEvent,
Id: Into<String>,
sourcepub fn channel<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<Channel<<R as ConnectChannelRequest>::Incoming, <R as ConnectChannelRequest>::Outgoing>, Error>> + Send + 'static, Global>> where
R: ConnectChannelRequest,
pub fn channel<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<Channel<<R as ConnectChannelRequest>::Incoming, <R as ConnectChannelRequest>::Outgoing>, Error>> + Send + 'static, Global>> where
R: ConnectChannelRequest,
Trait Implementations
sourceimpl Client for WebSocketClient
impl Client for WebSocketClient
sourceimpl Clone for WebSocketClient
impl Clone for WebSocketClient
sourcefn clone(&self) -> WebSocketClient
fn clone(&self) -> WebSocketClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WebSocketClient
impl Debug for WebSocketClient
sourceimpl StreamingClient for WebSocketClient
impl StreamingClient for WebSocketClient
sourcefn subnote<E>(
&self,
note_id: String
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<E, Error>> + Send, Global>>, Error>> + Send, Global>> where
E: SubNoteEvent,
fn subnote<E>(
&self,
note_id: String
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<E, Error>> + Send, Global>>, Error>> + Send, Global>> where
E: SubNoteEvent,
Captures the note specified by note_id
.
sourcefn channel<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn StreamSink<<R as ConnectChannelRequest>::Incoming, <R as ConnectChannelRequest>::Outgoing, Error, Error = Error, Item = Result<<R as ConnectChannelRequest>::Incoming, Error>> + Send, Global>>, Error>> + Send, Global>> where
R: ConnectChannelRequest,
fn channel<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn StreamSink<<R as ConnectChannelRequest>::Incoming, <R as ConnectChannelRequest>::Outgoing, Error, Error = Error, Item = Result<<R as ConnectChannelRequest>::Incoming, Error>> + Send, Global>>, Error>> + Send, Global>> where
R: ConnectChannelRequest,
Connects to the channel using request
.
Auto Trait Implementations
impl !RefUnwindSafe for WebSocketClient
impl Send for WebSocketClient
impl Sync for WebSocketClient
impl Unpin for WebSocketClient
impl !UnwindSafe for WebSocketClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<C> ClientExt for C where
C: Client + Sync,
impl<C> ClientExt for C where
C: Client + Sync,
sourcefn me(
&self
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn me(
&self
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Gets the information of the user who is logged in with this client. Read more
sourcefn update_me(&self) -> MeUpdateBuilder<&Self>
fn update_me(&self) -> MeUpdateBuilder<&Self>
Updates the user logged in with this client. Read more
sourcefn follow(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn follow(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Follows the specified user.
sourcefn unfollow(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn unfollow(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Unfollows the specified user.
sourcefn mute(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn mute(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Mutes the specified user.
sourcefn unmute(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn unmute(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Unmutes the specified user.
sourcefn block(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn block(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Blocks the specified user.
sourcefn unblock(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn unblock(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Unblocks the specified user.
sourcefn followers(
&self,
user: impl EntityRef<User>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
fn followers(
&self,
user: impl EntityRef<User>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
Lists the followers of the specified user. Read more
sourcefn following(
&self,
user: impl EntityRef<User>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
fn following(
&self,
user: impl EntityRef<User>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
Lists the users that the specified user is following.
sourcefn pin_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn pin_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Pins the specified note to the profile.
sourcefn unpin_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn unpin_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Unpins the specified note to the profile.
sourcefn follow_requests(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<FollowRequest, Global>, Error<Self::Error>>> + Send, Global>>
fn follow_requests(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<FollowRequest, Global>, Error<Self::Error>>> + Send, Global>>
Lists the follow requests sent to the user logged in with this client. Read more
sourcefn cancel_follow_request(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn cancel_follow_request(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Cancels the follow request being sent to the specified user.
sourcefn accept_follow_request(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn accept_follow_request(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Accepts the follow request that have been received from the specified user.
sourcefn reject_follow_request(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn reject_follow_request(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Rejects the follow request that have been received from the specified user.
sourcefn muting_users(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
fn muting_users(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
Lists the users muted by the user logged in with this client.
sourcefn blocking_users(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
fn blocking_users(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
Lists the users blocked by the user logged in with this client.
sourcefn favorited_notes(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn favorited_notes(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes favorited by the user logged in with this client.
sourcefn notifications(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Notification, Global>, Error<Self::Error>>, Client = Self, Content = Notification> + Send, Global>>>
fn notifications(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Notification, Global>, Error<Self::Error>>, Client = Self, Content = Notification> + Send, Global>>>
Lists the notifications to the user logged in with this client. Read more
sourcefn user_relation(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<UserRelation, Error<Self::Error>>> + Send, Global>>
fn user_relation(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<UserRelation, Error<Self::Error>>> + Send, Global>>
Returns the relationship between the specified user and the user logged in with this client. Read more
sourcefn is_following(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn is_following(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified user is followed by the user logged in with this client. Read more
sourcefn is_followed(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn is_followed(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified user follows the user logged in with this client. Read more
sourcefn is_blocking(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn is_blocking(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified user is blocked by the user logged in with this client. Read more
sourcefn is_blocked(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn is_blocked(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified user blocks the user logged in with this client. Read more
sourcefn is_muted(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn is_muted(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified user is muted by the user logged in with this client. Read more
sourcefn has_pending_follow_request_from_me(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn has_pending_follow_request_from_me(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified user has a pending follow request from the user logged in with this client. Read more
sourcefn has_pending_follow_request_to_me(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn has_pending_follow_request_to_me(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified user has a pending follow request to the user logged in with this client. Read more
sourcefn get_user(
&self,
id: Id<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
fn get_user(
&self,
id: Id<User>
) -> Pin<Box<dyn Future<Output = Result<User, Error<Self::Error>>> + Send, Global>>
Gets the corresponding user from the ID.
sourcefn get_users(
&self,
ids: impl IntoIterator<Item = Id<User>>
) -> Pin<Box<dyn Future<Output = Result<Vec<User, Global>, Error<Self::Error>>> + Send, Global>>
fn get_users(
&self,
ids: impl IntoIterator<Item = Id<User>>
) -> Pin<Box<dyn Future<Output = Result<Vec<User, Global>, Error<Self::Error>>> + Send, Global>>
Gets the list of corresponding user from the list of IDs.
sourcefn report_abuse(
&self,
user: impl EntityRef<User>,
comment: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn report_abuse(
&self,
user: impl EntityRef<User>,
comment: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Reports abuse by the specified user.
sourcefn search_users(
&self,
query: impl Into<String>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
fn search_users(
&self,
query: impl Into<String>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
Searches for users with the specified query string.
sourcefn users(&self) -> UserListBuilder<&Self>
fn users(&self) -> UserListBuilder<&Self>
Lists the users in the instance. Read more
sourcefn recommended_users(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
fn recommended_users(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<Self::Error>>, Client = Self, Content = User> + Send, Global>>>
Lists the recommended users of the instance.
sourcefn frequently_replied_users(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<Vec<User, Global>, Error<Self::Error>>> + Send, Global>>
fn frequently_replied_users(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<Vec<User, Global>, Error<Self::Error>>> + Send, Global>>
Lists the users who frequently reply to the specified user.
sourcefn pinned_users(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<User, Global>, Error<Self::Error>>> + Send, Global>>
fn pinned_users(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<User, Global>, Error<Self::Error>>> + Send, Global>>
Lists the users pinned to the instance.
sourcefn build_note(&self) -> NoteBuilder<&Self>
fn build_note(&self) -> NoteBuilder<&Self>
Returns a builder for composing a note. Read more
sourcefn delete_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified note. Read more
sourcefn get_note(
&self,
id: Id<Note>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
fn get_note(
&self,
id: Id<Note>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
Gets the corresponding note from the ID.
sourcefn create_note(
&self,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
fn create_note(
&self,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
Creates a note with the given text. Read more
sourcefn poll(
&self,
text: impl Into<String>,
choices: impl IntoIterator<Item = impl Into<String>>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
fn poll(
&self,
text: impl Into<String>,
choices: impl IntoIterator<Item = impl Into<String>>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
Creates a poll with the given text and choices. Read more
sourcefn reply(
&self,
note: impl EntityRef<Note>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
fn reply(
&self,
note: impl EntityRef<Note>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
Creates a reply note with the given text.
sourcefn renote(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
fn renote(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
Creates a renote.
sourcefn quote(
&self,
note: impl EntityRef<Note>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
fn quote(
&self,
note: impl EntityRef<Note>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Note, Error<Self::Error>>> + Send, Global>>
Creates a quote note with the given text.
sourcefn react(
&self,
note: impl EntityRef<Note>,
reaction: impl Into<Reaction>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn react(
&self,
note: impl EntityRef<Note>,
reaction: impl Into<Reaction>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Adds the reaction to the specified note.
sourcefn unreact(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn unreact(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes a reaction from the specified note.
sourcefn favorite(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn favorite(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Favorites the specified note.
sourcefn unfavorite(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn unfavorite(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Unfavorites the specified note.
sourcefn watch(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn watch(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Watches the specified note.
sourcefn unwatch(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn unwatch(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Unwatches the specified note.
sourcefn is_favorited(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn is_favorited(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified note is favorited by the user logged in with this client.
sourcefn is_watched(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
fn is_watched(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<bool, Error<Self::Error>>> + Send, Global>>
Checks if the specified note is watched by the user logged in with this client.
sourcefn vote(
&self,
note: impl EntityRef<Note>,
choice: u64
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn vote(
&self,
note: impl EntityRef<Note>,
choice: u64
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Vote on the specified note.
sourcefn featured_notes(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn featured_notes(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the featured notes.
sourcefn conversation(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn conversation(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes of the conversation.
sourcefn children_notes(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn children_notes(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the reply notes to the specified note.
sourcefn mentioned_notes(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn mentioned_notes(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes that are mentioning the account you are logged into with this client.
sourcefn renotes(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn renotes(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the renotes of the specified note.
sourcefn replies(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn replies(
&self,
note: impl EntityRef<Note>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the replies to the specified note.
sourcefn search_notes(
&self,
query: impl Into<String>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn search_notes(
&self,
query: impl Into<String>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Searches for notes with the specified query string.
sourcefn local_notes(
&self,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn local_notes(
&self,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes in the specified range of the local timeline. Read more
sourcefn local_notes_since(
&self,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn local_notes_since(
&self,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists all notes since the specified point in the local timeline in reverse order (i.e. the old note comes first, the new note comes after). Read more
sourcefn local_notes_around(
&self,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
fn local_notes_around(
&self,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
Returns a set of streams that fetch notes around the specified point in the local timeline in both directions.
sourcefn global_notes(
&self,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn global_notes(
&self,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes in the specified range of the global timeline. Read more
sourcefn global_notes_since(
&self,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn global_notes_since(
&self,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists all notes since the specified point in the global timeline in reverse order (i.e. the old note comes first, the new note comes after). Read more
sourcefn global_notes_around(
&self,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
fn global_notes_around(
&self,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
Returns a set of streams that fetch notes around the specified point in the global timeline in both directions.
Lists the notes in the specified range of the social timeline. Read more
Lists all notes since the specified point in the social timeline in reverse order (i.e. the old note comes first, the new note comes after). Read more
Returns a set of streams that fetch notes around the specified point in the social timeline in both directions.
sourcefn home_notes(
&self,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn home_notes(
&self,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes in the specified range of the home timeline. Read more
sourcefn home_notes_since(
&self,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn home_notes_since(
&self,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists all notes since the specified point in the home timeline in reverse order (i.e. the old note comes first, the new note comes after). Read more
sourcefn home_notes_around(
&self,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
fn home_notes_around(
&self,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
Returns a set of streams that fetch notes around the specified point in the home timeline in both directions.
sourcefn user_notes(
&self,
user: impl EntityRef<User>,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn user_notes(
&self,
user: impl EntityRef<User>,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes in the specified range of the user timeline. Read more
sourcefn user_notes_since(
&self,
user: impl EntityRef<User>,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn user_notes_since(
&self,
user: impl EntityRef<User>,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists all notes since the specified point in the user timeline in reverse order (i.e. the old note comes first, the new note comes after). Read more
sourcefn user_notes_around(
&self,
user: impl EntityRef<User>,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
fn user_notes_around(
&self,
user: impl EntityRef<User>,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
Returns a set of streams that fetch notes around the specified point in the user timeline in both directions.
sourcefn user_list_notes(
&self,
list: impl EntityRef<UserList>,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn user_list_notes(
&self,
list: impl EntityRef<UserList>,
range: impl Into<TimelineRange<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes in the specified range of the user_list timeline. Read more
sourcefn user_list_notes_since(
&self,
list: impl EntityRef<UserList>,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn user_list_notes_since(
&self,
list: impl EntityRef<UserList>,
since: impl Into<TimelineCursor<Note>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists all notes since the specified point in the user_list timeline in reverse order (i.e. the old note comes first, the new note comes after). Read more
sourcefn user_list_notes_around(
&self,
list: impl EntityRef<UserList>,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
fn user_list_notes_around(
&self,
list: impl EntityRef<UserList>,
cursor: impl Into<TimelineCursor<Note>>
) -> (PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>, PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>)
Returns a set of streams that fetch notes around the specified point in the user_list timeline in both directions.
sourcefn tagged_notes(
&self,
query: impl Into<Query<Tag>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn tagged_notes(
&self,
query: impl Into<Query<Tag>>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes with tags as specified in the given query. Read more
sourcefn local_notes_with_file_types(
&self,
types: impl IntoIterator<Item = Mime>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn local_notes_with_file_types(
&self,
types: impl IntoIterator<Item = Mime>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the local notes with the given file types. Read more
sourcefn create_user_list(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserList, Error<Self::Error>>> + Send, Global>>
fn create_user_list(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserList, Error<Self::Error>>> + Send, Global>>
Creates a user list with the given name. Read more
sourcefn delete_user_list(
&self,
list: impl EntityRef<UserList>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_user_list(
&self,
list: impl EntityRef<UserList>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified user list. Read more
sourcefn rename_user_list(
&self,
list: impl EntityRef<UserList>,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserList, Error<Self::Error>>> + Send, Global>>
fn rename_user_list(
&self,
list: impl EntityRef<UserList>,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserList, Error<Self::Error>>> + Send, Global>>
Updates the name of the specified user list to the given one. Read more
sourcefn get_user_list(
&self,
id: Id<UserList>
) -> Pin<Box<dyn Future<Output = Result<UserList, Error<Self::Error>>> + Send, Global>>
fn get_user_list(
&self,
id: Id<UserList>
) -> Pin<Box<dyn Future<Output = Result<UserList, Error<Self::Error>>> + Send, Global>>
Gets the corresponding user list from the ID.
sourcefn push_to_user_list(
&self,
list: impl EntityRef<UserList>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn push_to_user_list(
&self,
list: impl EntityRef<UserList>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Adds the user from the specified user list.
sourcefn pull_from_user_list(
&self,
list: impl EntityRef<UserList>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn pull_from_user_list(
&self,
list: impl EntityRef<UserList>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the user from the specified user list.
sourcefn create_user_group(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
fn create_user_group(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
Creates a user group with the given name. Read more
sourcefn delete_user_group(
&self,
group: impl EntityRef<UserGroup>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_user_group(
&self,
group: impl EntityRef<UserGroup>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified user group. Read more
sourcefn rename_user_group(
&self,
group: impl EntityRef<UserGroup>,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
fn rename_user_group(
&self,
group: impl EntityRef<UserGroup>,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
Updates the name of the specified user group to the given one. Read more
sourcefn get_user_group(
&self,
id: Id<UserGroup>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
fn get_user_group(
&self,
id: Id<UserGroup>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
Gets the corresponding user group from the ID.
sourcefn invite_to_user_group(
&self,
group: impl EntityRef<UserGroup>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn invite_to_user_group(
&self,
group: impl EntityRef<UserGroup>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Invites the user to the specified user group.
sourcefn pull_from_user_group(
&self,
group: impl EntityRef<UserGroup>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn pull_from_user_group(
&self,
group: impl EntityRef<UserGroup>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the user from the specified user group. Read more
sourcefn transfer_user_group(
&self,
group: impl EntityRef<UserGroup>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
fn transfer_user_group(
&self,
group: impl EntityRef<UserGroup>,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<UserGroup, Error<Self::Error>>> + Send, Global>>
Transfers the specified user group. Read more
sourcefn user_group_invitations(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<UserGroupInvitation, Global>, Error<Self::Error>>, Client = Self, Content = UserGroupInvitation> + Send, Global>>>
fn user_group_invitations(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<UserGroupInvitation, Global>, Error<Self::Error>>, Client = Self, Content = UserGroupInvitation> + Send, Global>>>
Lists the user group invitations sent to the user who is logged in with this client. Read more
sourcefn accept_user_group_invitation(
&self,
invitation: impl EntityRef<UserGroupInvitation>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn accept_user_group_invitation(
&self,
invitation: impl EntityRef<UserGroupInvitation>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Accepts the specified user group invitation sent to the user logged in with this client.
sourcefn reject_user_group_invitation(
&self,
invitation: impl EntityRef<UserGroupInvitation>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn reject_user_group_invitation(
&self,
invitation: impl EntityRef<UserGroupInvitation>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Rejects the specified user group invitation sent to the user logged in with this client.
sourcefn joined_user_groups(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<UserGroup, Global>, Error<Self::Error>>> + Send, Global>>
fn joined_user_groups(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<UserGroup, Global>, Error<Self::Error>>> + Send, Global>>
Lists the user groups joined by the user logged in with this client.
sourcefn owned_user_groups(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<UserGroup, Global>, Error<Self::Error>>> + Send, Global>>
fn owned_user_groups(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<UserGroup, Global>, Error<Self::Error>>> + Send, Global>>
Lists the user groups owned by the user logged in with this client.
sourcefn create_antenna(
&self,
name: impl Into<String>,
query: impl Into<Query<String>>
) -> Pin<Box<dyn Future<Output = Result<Antenna, Error<Self::Error>>> + Send, Global>>
fn create_antenna(
&self,
name: impl Into<String>,
query: impl Into<Query<String>>
) -> Pin<Box<dyn Future<Output = Result<Antenna, Error<Self::Error>>> + Send, Global>>
Creates an antenna with the given name and query. Read more
sourcefn build_antenna(&self) -> AntennaBuilder<&Self>
fn build_antenna(&self) -> AntennaBuilder<&Self>
Returns a builder for creating an antenna. Read more
sourcefn delete_antenna(
&self,
antenna: impl EntityRef<Antenna>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_antenna(
&self,
antenna: impl EntityRef<Antenna>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified antenna. Read more
sourcefn get_antenna(
&self,
id: Id<Antenna>
) -> Pin<Box<dyn Future<Output = Result<Antenna, Error<Self::Error>>> + Send, Global>>
fn get_antenna(
&self,
id: Id<Antenna>
) -> Pin<Box<dyn Future<Output = Result<Antenna, Error<Self::Error>>> + Send, Global>>
Gets the corresponding antenna from the ID.
sourcefn update_antenna(&self, antenna: Antenna) -> AntennaUpdateBuilder<&Self>
fn update_antenna(&self, antenna: Antenna) -> AntennaUpdateBuilder<&Self>
Updates the antenna. Read more
sourcefn antennas(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<Antenna, Global>, Error<Self::Error>>> + Send, Global>>
fn antennas(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<Antenna, Global>, Error<Self::Error>>> + Send, Global>>
Lists the antennas created by the user logged in with this client.
sourcefn antenna_notes(
&self,
antenna: impl EntityRef<Antenna>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn antenna_notes(
&self,
antenna: impl EntityRef<Antenna>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes that hit the specified antenna.
sourcefn create_clip(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Clip, Error<Self::Error>>> + Send, Global>>
fn create_clip(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Clip, Error<Self::Error>>> + Send, Global>>
Creates a clip with the given name. Read more
sourcefn delete_clip(
&self,
clip: impl EntityRef<Clip>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_clip(
&self,
clip: impl EntityRef<Clip>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified clip. Read more
sourcefn clips(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<Clip, Global>, Error<Self::Error>>> + Send, Global>>
fn clips(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<Clip, Global>, Error<Self::Error>>> + Send, Global>>
Lists the clips created by the user logged in with this client.
sourcefn clip_notes(
&self,
clip: impl EntityRef<Clip>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
fn clip_notes(
&self,
clip: impl EntityRef<Clip>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Note, Global>, Error<Self::Error>>, Client = Self, Content = Note> + Send, Global>>>
Lists the notes that are clipped to the specified clip.
sourcefn get_clip(
&self,
id: Id<Clip>
) -> Pin<Box<dyn Future<Output = Result<Clip, Error<Self::Error>>> + Send, Global>>
fn get_clip(
&self,
id: Id<Clip>
) -> Pin<Box<dyn Future<Output = Result<Clip, Error<Self::Error>>> + Send, Global>>
Gets the corresponding clip from the ID.
sourcefn rename_clip(
&self,
clip: impl EntityRef<Clip>,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Clip, Error<Self::Error>>> + Send, Global>>
fn rename_clip(
&self,
clip: impl EntityRef<Clip>,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Clip, Error<Self::Error>>> + Send, Global>>
Updates the name of the specified clip to the given one.
sourcefn create_message(
&self,
recipient: impl EntityRef<User>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<MessagingMessage, Error<Self::Error>>> + Send, Global>>
fn create_message(
&self,
recipient: impl EntityRef<User>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<MessagingMessage, Error<Self::Error>>> + Send, Global>>
Sends a message to the user with the given text.
sourcefn create_group_message(
&self,
recipient: impl EntityRef<UserGroup>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<MessagingMessage, Error<Self::Error>>> + Send, Global>>
fn create_group_message(
&self,
recipient: impl EntityRef<UserGroup>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<MessagingMessage, Error<Self::Error>>> + Send, Global>>
Sends a message to the user group with the given text.
sourcefn build_message(&self) -> MessagingMessageBuilder<&Self>
fn build_message(&self) -> MessagingMessageBuilder<&Self>
Returns a builder for creating a message. Read more
sourcefn delete_message(
&self,
message: impl EntityRef<MessagingMessage>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_message(
&self,
message: impl EntityRef<MessagingMessage>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified message.
sourcefn read_message(
&self,
message: impl EntityRef<MessagingMessage>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn read_message(
&self,
message: impl EntityRef<MessagingMessage>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Marks the specified message as read.
sourcefn user_messages(
&self,
user: impl EntityRef<User>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<MessagingMessage, Global>, Error<Self::Error>>, Client = Self, Content = MessagingMessage> + Send, Global>>>
fn user_messages(
&self,
user: impl EntityRef<User>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<MessagingMessage, Global>, Error<Self::Error>>, Client = Self, Content = MessagingMessage> + Send, Global>>>
Lists the messages with the specified user.
sourcefn group_messages(
&self,
group: impl EntityRef<UserGroup>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<MessagingMessage, Global>, Error<Self::Error>>, Client = Self, Content = MessagingMessage> + Send, Global>>>
fn group_messages(
&self,
group: impl EntityRef<UserGroup>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<MessagingMessage, Global>, Error<Self::Error>>, Client = Self, Content = MessagingMessage> + Send, Global>>>
Lists the messages in the specified user group.
sourcefn messaging_history(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<MessagingMessage, Global>, Error<Self::Error>>> + Send, Global>>
fn messaging_history(
&self
) -> Pin<Box<dyn Future<Output = Result<Vec<MessagingMessage, Global>, Error<Self::Error>>> + Send, Global>>
Gets message logs for the user who is logged in with this client.
sourcefn upload_file_from_url_(
&self,
url: Url
) -> Pin<Box<dyn Future<Output = Result<DriveFile, Error<Self::Error>>> + Send, Global>>
fn upload_file_from_url_(
&self,
url: Url
) -> Pin<Box<dyn Future<Output = Result<DriveFile, Error<Self::Error>>> + Send, Global>>
Uploads the file from the given url to the drive. Read more
sourcefn build_file_from_url(&self, url: Url) -> DriveFileUrlBuilder<&Self>
fn build_file_from_url(&self, url: Url) -> DriveFileUrlBuilder<&Self>
Returns a builder for creating a file on the drive. Read more
sourcefn delete_file(
&self,
file: impl EntityRef<DriveFile>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_file(
&self,
file: impl EntityRef<DriveFile>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified file on the drive.
sourcefn update_file(
&self,
file: impl EntityRef<DriveFile>
) -> DriveFileUpdateBuilder<&Self>
fn update_file(
&self,
file: impl EntityRef<DriveFile>
) -> DriveFileUpdateBuilder<&Self>
Updates the specified file Read more
sourcefn get_file(
&self,
id: Id<DriveFile>
) -> Pin<Box<dyn Future<Output = Result<DriveFile, Error<Self::Error>>> + Send, Global>>
fn get_file(
&self,
id: Id<DriveFile>
) -> Pin<Box<dyn Future<Output = Result<DriveFile, Error<Self::Error>>> + Send, Global>>
Gets the corresponding file from the ID.
sourcefn create_folder(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<DriveFolder, Error<Self::Error>>> + Send, Global>>
fn create_folder(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<DriveFolder, Error<Self::Error>>> + Send, Global>>
Creates a folder on the drive with the given name. Read more
sourcefn create_folder_with_parent(
&self,
name: impl Into<String>,
parent: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<DriveFolder, Error<Self::Error>>> + Send, Global>>
fn create_folder_with_parent(
&self,
name: impl Into<String>,
parent: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<DriveFolder, Error<Self::Error>>> + Send, Global>>
Creates a folder on the drive with the given name and parent folder.
sourcefn delete_folder(
&self,
folder: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_folder(
&self,
folder: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified folder on the drive.
sourcefn update_folder(
&self,
folder: impl EntityRef<DriveFolder>
) -> DriveFolderUpdateBuilder<&Self>
fn update_folder(
&self,
folder: impl EntityRef<DriveFolder>
) -> DriveFolderUpdateBuilder<&Self>
Updates the specified folder. Read more
sourcefn get_folder(
&self,
id: Id<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<DriveFolder, Error<Self::Error>>> + Send, Global>>
fn get_folder(
&self,
id: Id<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<DriveFolder, Error<Self::Error>>> + Send, Global>>
Gets the corresponding folder from the ID.
sourcefn attached_notes(
&self,
file: impl EntityRef<DriveFile>
) -> Pin<Box<dyn Future<Output = Result<Vec<Note, Global>, Error<Self::Error>>> + Send, Global>>
fn attached_notes(
&self,
file: impl EntityRef<DriveFile>
) -> Pin<Box<dyn Future<Output = Result<Vec<Note, Global>, Error<Self::Error>>> + Send, Global>>
Lists the notes that have the specified file attached.
sourcefn find_file_by_name(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFile, Global>, Error<Self::Error>>> + Send, Global>>
fn find_file_by_name(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFile, Global>, Error<Self::Error>>> + Send, Global>>
Lists the files with the specified name.
sourcefn find_file_by_name_in_folder(
&self,
name: impl Into<String>,
folder: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFile, Global>, Error<Self::Error>>> + Send, Global>>
fn find_file_by_name_in_folder(
&self,
name: impl Into<String>,
folder: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFile, Global>, Error<Self::Error>>> + Send, Global>>
Lists the files with the specified name in the folder.
sourcefn find_folder_by_name(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFolder, Global>, Error<Self::Error>>> + Send, Global>>
fn find_folder_by_name(
&self,
name: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFolder, Global>, Error<Self::Error>>> + Send, Global>>
Lists the folders with the specified name.
sourcefn find_folder_by_name_in_folder(
&self,
name: impl Into<String>,
folder: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFolder, Global>, Error<Self::Error>>> + Send, Global>>
fn find_folder_by_name_in_folder(
&self,
name: impl Into<String>,
folder: impl EntityRef<DriveFolder>
) -> Pin<Box<dyn Future<Output = Result<Vec<DriveFolder, Global>, Error<Self::Error>>> + Send, Global>>
Lists the folders with the specified name in the folder.
sourcefn files(&self) -> DriveFileListBuilder<&Self>
fn files(&self) -> DriveFileListBuilder<&Self>
Lists the files on the drive. Read more
sourcefn folders(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<DriveFolder, Global>, Error<Self::Error>>, Client = Self, Content = DriveFolder> + Send, Global>>>
fn folders(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<DriveFolder, Global>, Error<Self::Error>>, Client = Self, Content = DriveFolder> + Send, Global>>>
Lists the folders.
sourcefn folders_in_folder(
&self,
folder: impl EntityRef<DriveFolder>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<DriveFolder, Global>, Error<Self::Error>>, Client = Self, Content = DriveFolder> + Send, Global>>>
fn folders_in_folder(
&self,
folder: impl EntityRef<DriveFolder>
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<DriveFolder, Global>, Error<Self::Error>>, Client = Self, Content = DriveFolder> + Send, Global>>>
Lists the folders in the folder.
sourcefn add_moderator(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn add_moderator(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Sets moderator privileges for the specified user. Read more
sourcefn remove_moderator(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn remove_moderator(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Removes moderator privileges for the specified user. Read more
sourcefn abuse_user_reports(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<AbuseUserReport, Global>, Error<Self::Error>>, Client = Self, Content = AbuseUserReport> + Send, Global>>>
fn abuse_user_reports(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<AbuseUserReport, Global>, Error<Self::Error>>, Client = Self, Content = AbuseUserReport> + Send, Global>>>
Lists the abuse user reports. Read more
sourcefn remove_abuse_user_report(
&self,
report: impl EntityRef<AbuseUserReport>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn remove_abuse_user_report(
&self,
report: impl EntityRef<AbuseUserReport>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Removes the specified abuse user report. Read more
sourcefn server_logs(&self) -> ServerLogListBuilder<&Self>
fn server_logs(&self) -> ServerLogListBuilder<&Self>
Lists the server logs in the instance. Read more
sourcefn moderation_logs(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<ModerationLog, Global>, Error<Self::Error>>, Client = Self, Content = ModerationLog> + Send, Global>>>
fn moderation_logs(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<ModerationLog, Global>, Error<Self::Error>>, Client = Self, Content = ModerationLog> + Send, Global>>>
Lists the moderation logs in the instance. Read more
sourcefn silence(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn silence(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Silences the specified user. Read more
sourcefn suspend(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn suspend(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Suspends the specified user. Read more
sourcefn unsilence(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn unsilence(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Unsilences the specified user. Read more
sourcefn unsuspend(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn unsuspend(
&self,
user: impl EntityRef<User>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Unsuspends the specified user. Read more
sourcefn update_meta(&self) -> MetaUpdateBuilder<&Self>
fn update_meta(&self) -> MetaUpdateBuilder<&Self>
Updates the instance information. Read more
sourcefn create_announcement(
&self,
title: impl Into<String>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Announcement, Error<Self::Error>>> + Send, Global>>
fn create_announcement(
&self,
title: impl Into<String>,
text: impl Into<String>
) -> Pin<Box<dyn Future<Output = Result<Announcement, Error<Self::Error>>> + Send, Global>>
Creates an announcement with given title and text. Read more
sourcefn create_announcement_with_image(
&self,
title: impl Into<String>,
text: impl Into<String>,
image_url: Url
) -> Pin<Box<dyn Future<Output = Result<Announcement, Error<Self::Error>>> + Send, Global>>
fn create_announcement_with_image(
&self,
title: impl Into<String>,
text: impl Into<String>,
image_url: Url
) -> Pin<Box<dyn Future<Output = Result<Announcement, Error<Self::Error>>> + Send, Global>>
Creates an announcement with given title, text, and image URL. Read more
sourcefn delete_announcement(
&self,
announcement: impl EntityRef<Announcement>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_announcement(
&self,
announcement: impl EntityRef<Announcement>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified announcement. Read more
sourcefn update_announcement(
&self,
announcement: Announcement
) -> AnnouncementUpdateBuilder<&Self>
fn update_announcement(
&self,
announcement: Announcement
) -> AnnouncementUpdateBuilder<&Self>
Updates the specified announcement. Read more
sourcefn delete_emoji(
&self,
emoji: impl EntityRef<Emoji>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
fn delete_emoji(
&self,
emoji: impl EntityRef<Emoji>
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send, Global>>
Deletes the specified emoji. Read more
sourcefn copy_emoji(
&self,
emoji: impl EntityRef<Emoji>
) -> Pin<Box<dyn Future<Output = Result<Id<Emoji>, Error<Self::Error>>> + Send, Global>>
fn copy_emoji(
&self,
emoji: impl EntityRef<Emoji>
) -> Pin<Box<dyn Future<Output = Result<Id<Emoji>, Error<Self::Error>>> + Send, Global>>
Copies the specified emoji. Read more
sourcefn emojis(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Emoji, Global>, Error<Self::Error>>, Client = Self, Content = Emoji> + Send, Global>>>
fn emojis(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Emoji, Global>, Error<Self::Error>>, Client = Self, Content = Emoji> + Send, Global>>>
Lists the emojis in the instance. Read more
sourcefn meta(
&self
) -> Pin<Box<dyn Future<Output = Result<Meta, Error<Self::Error>>> + Send, Global>>
fn meta(
&self
) -> Pin<Box<dyn Future<Output = Result<Meta, Error<Self::Error>>> + Send, Global>>
Gets information about the instance.
sourcefn announcements(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Announcement, Global>, Error<Self::Error>>, Client = Self, Content = Announcement> + Send, Global>>>
fn announcements(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<Announcement, Global>, Error<Self::Error>>, Client = Self, Content = Announcement> + Send, Global>>>
Lists announcements of the instance.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<C> StreamingClientExt for C where
C: StreamingClient + Sync,
impl<C> StreamingClientExt for C where
C: StreamingClient + Sync,
sourcefn subscribe_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<NoteUpdateEvent, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
fn subscribe_note(
&self,
note: impl EntityRef<Note>
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<NoteUpdateEvent, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
Subscribes to the specified note and returns a stream to receive the events. Read more
sourcefn main_stream(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<MainStreamEvent, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
fn main_stream(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<MainStreamEvent, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
Returns a stream to receive the events from the main stream. Read more
sourcefn home_timeline(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
fn home_timeline(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
Returns a stream to receive the notes in the home timeline. Read more
sourcefn local_timeline(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
fn local_timeline(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
Returns a stream to receive the notes in the local timeline. Read more
Returns a stream to receive the notes in the social timeline. Read more
sourcefn global_timeline(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
fn global_timeline(
&self
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
Returns a stream to receive the notes in the global timeline. Read more
sourcefn hashtag_timeline(
&self,
query: impl Into<Query<String>>
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
fn hashtag_timeline(
&self,
query: impl Into<Query<String>>
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Note, Error<Self::Error>>> + Send, Global>>, Error<Self::Error>>> + Send, Global>>
Returns a stream to receive the notes with the given hashtags.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more