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 Followed
impl Move for Followed
impl RefUnwindSafe for Followed
impl Send for Followed
impl Sync for Followed
impl Unpin for Followed
impl UnsafeUnpin for Followed
impl UnwindSafe for Followed
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