pub struct CovenantBinding { /* private fields */ }Implementations§
Source§impl CovenantBinding
impl CovenantBinding
pub fn inner(&self) -> MutexGuard<'_, CovenantBindingInner>
Source§impl CovenantBinding
impl CovenantBinding
pub fn new(authorizing_input: u16, covenant_id: Hash) -> Self
pub fn set_covenant_id(&mut self, v: Hash)
pub fn get_covenant_id(&self) -> Hash
pub fn to_js_object(&self) -> Result<Object, WasmError>
Trait Implementations§
Source§impl BorshDeserialize for CovenantBinding
impl BorshDeserialize for CovenantBinding
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for CovenantBinding
impl BorshSerialize for CovenantBinding
Source§impl CastFromJs for CovenantBinding
impl CastFromJs for CovenantBinding
Source§fn try_ref_from_js_value<'a, R>(
js: &'a R,
) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
fn try_ref_from_js_value<'a, R>( js: &'a R, ) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
Obtain safe reference from
JsValueSource§fn try_long_ref_from_js_value<'a, R>(
js: &'a R,
) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
fn try_long_ref_from_js_value<'a, R>( js: &'a R, ) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
Obtain safe long reference from
JsValuefn try_ref_from_js_value_as_cast<'a, R>( js_value: &'a R, ) -> Result<Cast<'a, Self>, Error>
fn try_long_ref_from_js_value_as_cast<'a, R>( js: &'a R, ) -> Result<Cast<'a, Self>, Error>
Source§impl Clone for CovenantBinding
impl Clone for CovenantBinding
Source§impl Debug for CovenantBinding
impl Debug for CovenantBinding
Source§impl<'de> Deserialize<'de> for CovenantBinding
impl<'de> Deserialize<'de> for CovenantBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CovenantBinding> for JsValue
impl From<CovenantBinding> for JsValue
Source§fn from(value: CovenantBinding) -> Self
fn from(value: CovenantBinding) -> Self
Converts to this type from the input type.
Source§impl From<CovenantBinding> for CovenantBinding
impl From<CovenantBinding> for CovenantBinding
Source§fn from(covenant: CoreCovenantBinding) -> Self
fn from(covenant: CoreCovenantBinding) -> Self
Converts to this type from the input type.
Source§impl From<CovenantBinding> for CovenantBinding
impl From<CovenantBinding> for CovenantBinding
Source§fn from(covenant: CovenantBinding) -> Self
fn from(covenant: CovenantBinding) -> Self
Converts to this type from the input type.
Source§impl From<CovenantBinding> for SerializableCovenantBinding
impl From<CovenantBinding> for SerializableCovenantBinding
Source§fn from(covenant: CovenantBinding) -> Self
fn from(covenant: CovenantBinding) -> Self
Converts to this type from the input type.
Source§impl From<CovenantBinding> for SerializableCovenantBinding
impl From<CovenantBinding> for SerializableCovenantBinding
Source§fn from(covenant: CovenantBinding) -> Self
fn from(covenant: CovenantBinding) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CovenantBinding
impl FromWasmAbi for CovenantBinding
Source§impl IntoWasmAbi for CovenantBinding
impl IntoWasmAbi for CovenantBinding
Source§impl LongRefFromWasmAbi for CovenantBinding
impl LongRefFromWasmAbi for CovenantBinding
Source§impl OptionFromWasmAbi for CovenantBinding
impl OptionFromWasmAbi for CovenantBinding
Source§impl OptionIntoWasmAbi for CovenantBinding
impl OptionIntoWasmAbi for CovenantBinding
Source§impl RefFromWasmAbi for CovenantBinding
impl RefFromWasmAbi for CovenantBinding
Source§type Anchor = RcRef<CovenantBinding>
type Anchor = RcRef<CovenantBinding>
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 CovenantBinding
impl RefMutFromWasmAbi for CovenantBinding
Source§impl Serialize for CovenantBinding
impl Serialize for CovenantBinding
impl SupportsConstructor for CovenantBinding
impl SupportsInstanceProperty for CovenantBinding
impl SupportsStaticProperty for CovenantBinding
Source§impl TryCastFromJs for CovenantBinding
impl TryCastFromJs for CovenantBinding
type Error = Error
Source§fn try_cast_from<'a, R>(value: &'a R) -> Result<Cast<'a, Self>, Self::Error>
fn try_cast_from<'a, R>(value: &'a R) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object.
This should be user-defined function that
attempts to cast a JsValue into a Rust object
or interpret a source data and create a
temporary struct owned by by the
Cast.Source§fn try_owned_from(value: impl AsRef<JsValue>) -> Result<Self, Self::Error>
fn try_owned_from(value: impl AsRef<JsValue>) -> Result<Self, Self::Error>
Perform a user cast and consume the
Cast container.
This function will return a temporary user-created
object created during [try_cast_from] or a clone of the casted reference.fn try_captured_cast_from( js_value: impl AsRef<JsValue>, ) -> Result<Cast<'static, Self>, Self::Error>
Source§fn resolve<'a, R>(
js: &'a R,
create: impl FnOnce() -> Result<Self, Self::Error>,
) -> Result<Cast<'a, Self>, Self::Error>
fn resolve<'a, R>( js: &'a R, create: impl FnOnce() -> Result<Self, Self::Error>, ) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object, in cast of failure
invoke a user-supplied closure that can try to create an instance
of the object based on the supplied JsValue.
Source§fn resolve_cast<'a, R>(
js: &'a R,
create: impl FnOnce() -> Result<Cast<'a, Self>, Self::Error>,
) -> Result<Cast<'a, Self>, Self::Error>
fn resolve_cast<'a, R>( js: &'a R, create: impl FnOnce() -> Result<Cast<'a, Self>, Self::Error>, ) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object, in cast of failure
invoke a user-supplied closure that can try to create an instance
of the object based on the supplied JsValue. Unlike the [
resolve]
function, this function expects create closure to return a Cast.
This is useful when routing the creation of the object to another
function that is capable of creating a compatible Cast wrapper.Source§impl TryFromJsValue for CovenantBinding
impl TryFromJsValue for CovenantBinding
Source§impl VectorFromWasmAbi for CovenantBinding
impl VectorFromWasmAbi for CovenantBinding
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CovenantBinding]>
Source§impl VectorIntoJsValue for CovenantBinding
impl VectorIntoJsValue for CovenantBinding
fn vector_into_jsvalue(vector: Box<[CovenantBinding]>) -> JsValue
Source§impl VectorIntoWasmAbi for CovenantBinding
impl VectorIntoWasmAbi for CovenantBinding
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CovenantBinding]>) -> Self::Abi
Source§impl WasmDescribeVector for CovenantBinding
impl WasmDescribeVector for CovenantBinding
Auto Trait Implementations§
impl Freeze for CovenantBinding
impl RefUnwindSafe for CovenantBinding
impl Send for CovenantBinding
impl Sync for CovenantBinding
impl Unpin for CovenantBinding
impl UnsafeUnpin for CovenantBinding
impl UnwindSafe for CovenantBinding
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§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::AbiSource§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.