Struct aerostream::feedpost::FeedPosts
source · pub struct FeedPosts {
pub posts: Arc<RwLock<Vec<FeedPost>>>,
}
Expand description
List of PDS posts
Fields§
§posts: Arc<RwLock<Vec<FeedPost>>>
Implementations§
source§impl FeedPosts
impl FeedPosts
sourcepub fn append_posts(&mut self, new_posts: &[FeedPost])
pub fn append_posts(&mut self, new_posts: &[FeedPost])
Append PDS posts to this list
sourcepub fn delete_posts(&self, uris: &[String])
pub fn delete_posts(&self, uris: &[String])
Delete PDS posts from this list
sourcepub fn get_all_posts(&self) -> Vec<FeedPost>
pub fn get_all_posts(&self) -> Vec<FeedPost>
Get all PDS posts of this list
sourcepub fn get_old_posts(
&self,
limit: usize,
cursor: Option<Cursor>
) -> AppBskyFeedGetfeedskeleton
pub fn get_old_posts( &self, limit: usize, cursor: Option<Cursor> ) -> AppBskyFeedGetfeedskeleton
Get a fixed number of PDS posts
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FeedPosts
impl RefUnwindSafe for FeedPosts
impl Send for FeedPosts
impl Sync for FeedPosts
impl Unpin for FeedPosts
impl UnwindSafe for FeedPosts
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