Struct ywasm::ArrayEvent
source · pub struct ArrayEvent { /* private fields */ }
Expand description
Event generated by YArray.observe
method. Emitted during transaction commit phase.
Implementations§
source§impl YArrayEvent
impl YArrayEvent
sourcepub fn path(&self) -> JsValue
pub fn path(&self) -> JsValue
Returns an array of keys and indexes creating a path from root type down to current instance
of shared type (accessible via target
getter).
sourcepub fn target(&mut self) -> JsValue
pub fn target(&mut self) -> JsValue
Returns a current shared type instance, that current event changes refer to.
pub fn origin(&mut self) -> JsValue
Trait Implementations§
source§impl From<YArrayEvent> for JsValue
impl From<YArrayEvent> for JsValue
source§fn from(value: YArrayEvent) -> Self
fn from(value: YArrayEvent) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for YArrayEvent
impl FromWasmAbi for YArrayEvent
source§impl IntoWasmAbi for YArrayEvent
impl IntoWasmAbi for YArrayEvent
source§impl LongRefFromWasmAbi for YArrayEvent
impl LongRefFromWasmAbi for YArrayEvent
source§impl OptionFromWasmAbi for YArrayEvent
impl OptionFromWasmAbi for YArrayEvent
source§impl OptionIntoWasmAbi for YArrayEvent
impl OptionIntoWasmAbi for YArrayEvent
source§impl RefFromWasmAbi for YArrayEvent
impl RefFromWasmAbi for YArrayEvent
§type Anchor = Ref<'static, YArrayEvent>
type Anchor = Ref<'static, YArrayEvent>
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 YArrayEvent
impl RefMutFromWasmAbi for YArrayEvent
source§impl TryFromJsValue for YArrayEvent
impl TryFromJsValue for YArrayEvent
source§impl VectorFromWasmAbi for YArrayEvent
impl VectorFromWasmAbi for YArrayEvent
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[YArrayEvent]>
source§impl VectorIntoWasmAbi for YArrayEvent
impl VectorIntoWasmAbi for YArrayEvent
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[YArrayEvent]>) -> Self::Abi
source§impl WasmDescribeVector for YArrayEvent
impl WasmDescribeVector for YArrayEvent
Auto Trait Implementations§
impl Freeze for YArrayEvent
impl !RefUnwindSafe for YArrayEvent
impl !Send for YArrayEvent
impl !Sync for YArrayEvent
impl Unpin for YArrayEvent
impl !UnwindSafe for YArrayEvent
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§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
.