pub struct Served { /* private fields */ }Expand description
A procedure this link serves, until Served::stop or the link ends, or
until its advertisement lapses because its authorization could not be
found again. Cloning it shares the serving.
Implementations§
Source§impl Served
impl Served
Sourcepub async fn stop(&self) -> Result<(), LinkError>
pub async fn stop(&self) -> Result<(), LinkError>
Withdraws the advertisement with an UNADVERTISE carrying its tombstone, signed by this node, puts the tombstone in the advertisement’s DHT slot, and stops answering the procedure’s CALLs. Stopping a procedure no longer served does nothing.
Sourcepub async fn done(&self) -> LinkError
pub async fn done(&self) -> LinkError
Waits until the procedure is no longer served, and says why.
Sourcepub fn error(&self) -> Option<LinkError>
pub fn error(&self) -> Option<LinkError>
Why the procedure is no longer served: LinkError::Stopped after
stop, the link’s error when it ended, or the renewal’s failure; None
while served.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Served
impl !UnwindSafe for Served
impl Freeze for Served
impl Send for Served
impl Sync for Served
impl Unpin for Served
impl UnsafeUnpin for Served
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