pub struct DeployWatcher { /* private fields */ }
Expand description
Represents a deploy watcher responsible for monitoring deploy events.
This struct allows clients to subscribe to deploy events, start watching for events, or wait for an event and handle the received deploy event data.
§Fields
events_url
- The URL for deploy events.deploy_subscriptions
- Vector containing deploy subscriptions.active
- Reference-counted cell indicating whether the deploy watcher is active.timeout_duration
- Duration representing the optional timeout for watching events.
Implementations§
source§impl DeployWatcher
impl DeployWatcher
sourcepub fn unsubscribe(&mut self, deploy_hash: String)
pub fn unsubscribe(&mut self, deploy_hash: String)
Unsubscribes from deploy events based on the provided deploy hash.
§Arguments
deploy_hash
- The deploy hash to unsubscribe.
This method removes the deploy subscription associated with the provided deploy hash.
source§impl DeployWatcher
impl DeployWatcher
Trait Implementations§
source§impl Clone for DeployWatcher
impl Clone for DeployWatcher
source§fn clone(&self) -> DeployWatcher
fn clone(&self) -> DeployWatcher
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<DeployWatcher> for JsValue
impl From<DeployWatcher> for JsValue
source§fn from(value: DeployWatcher) -> Self
fn from(value: DeployWatcher) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for DeployWatcher
impl FromWasmAbi for DeployWatcher
source§impl IntoWasmAbi for DeployWatcher
impl IntoWasmAbi for DeployWatcher
source§impl LongRefFromWasmAbi for DeployWatcher
impl LongRefFromWasmAbi for DeployWatcher
source§impl OptionFromWasmAbi for DeployWatcher
impl OptionFromWasmAbi for DeployWatcher
source§impl OptionIntoWasmAbi for DeployWatcher
impl OptionIntoWasmAbi for DeployWatcher
source§impl RefFromWasmAbi for DeployWatcher
impl RefFromWasmAbi for DeployWatcher
source§type Anchor = RcRef<DeployWatcher>
type Anchor = RcRef<DeployWatcher>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for DeployWatcher
impl RefMutFromWasmAbi for DeployWatcher
source§impl TryFromJsValue for DeployWatcher
impl TryFromJsValue for DeployWatcher
source§impl VectorFromWasmAbi for DeployWatcher
impl VectorFromWasmAbi for DeployWatcher
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DeployWatcher]>
source§impl VectorIntoJsValue for DeployWatcher
impl VectorIntoJsValue for DeployWatcher
fn vector_into_jsvalue(vector: Box<[DeployWatcher]>) -> JsValue
source§impl VectorIntoWasmAbi for DeployWatcher
impl VectorIntoWasmAbi for DeployWatcher
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DeployWatcher]>) -> Self::Abi
source§impl WasmDescribeVector for DeployWatcher
impl WasmDescribeVector for DeployWatcher
Auto Trait Implementations§
impl Freeze for DeployWatcher
impl !RefUnwindSafe for DeployWatcher
impl !Send for DeployWatcher
impl !Sync for DeployWatcher
impl Unpin for DeployWatcher
impl !UnwindSafe for DeployWatcher
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.