pub struct Followed {
pub accepted: Accepted,
/* private fields */
}Expand description
An operation queued and followed (Client::follow).
Fields§
§accepted: AcceptedThe service’s acceptance.
Implementations§
Source§impl Followed
impl Followed
Sourcepub async fn next(&mut self) -> Option<Result<Event, ClientError>>
pub async fn next(&mut self) -> Option<Result<Event, ClientError>>
The operation’s next event; None after its ended.
Sourcepub async fn outcome(&mut self) -> Result<Event, ClientError>
pub async fn outcome(&mut self) -> Result<Event, ClientError>
Reads the operation to its end, and returns its result, else its error as
ClientError::Operation.
§Errors
It failed, was cancelled, or the connection ended.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Followed
impl Freeze for Followedwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Chan<Result<(EventCursor, Event), ClientError>, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<Result<(EventCursor, Event), ClientError>, Semaphore>>>: Freeze,
*const Header is !null: Freeze,
PhantomData<()>: Freeze,
impl Move for Followed
impl RefUnwindSafe for Followedwhere
Atomic<usize>: RefUnwindSafe,
Chan<Result<(EventCursor, Event), ClientError>, Semaphore>: RefUnwindSafe,
JoinHandle<()>: RefUnwindSafe,
impl Send for Followedwhere
RawVecInner: Send,
Arc<Chan<Result<(EventCursor, Event), ClientError>, Semaphore>>: Send,
JoinHandle<()>: Send,
impl Sync for Followedwhere
RawVecInner: Sync,
Arc<Chan<Result<(EventCursor, Event), ClientError>, Semaphore>>: Sync,
JoinHandle<()>: Sync,
impl Unpin for Followedwhere
*const u8 is !null: Unpin,
Receiver<Result<(EventCursor, Event), ClientError>>: Unpin,
JoinHandle<()>: Unpin,
impl UnsafeUnpin for Followedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Chan<Result<(EventCursor, Event), ClientError>, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<Result<(EventCursor, Event), ClientError>, Semaphore>>>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<()>: UnsafeUnpin,
impl UnwindSafe for Followedwhere
RawVecInner: UnwindSafe,
Arc<Chan<Result<(EventCursor, Event), ClientError>, Semaphore>>: UnwindSafe,
JoinHandle<()>: UnwindSafe,
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