pub struct Call { /* private fields */ }Expand description
The context of one call. Each method gets it as its first argument.
Implementations§
Source§impl Call
impl Call
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Returns true after the host cancelled the call.
A method that can run for a long time examines this value between its
steps and returns crate::CallError::cancelled when it is true.
Auto Trait Implementations§
impl Forget for Call
impl Freeze for Call
impl Move for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
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