Struct JsonRpc

Source
pub struct JsonRpc(/* private fields */);

Trait Implementations§

Source§

impl Action for JsonRpc

§

fn trigger(&self)

Source§

impl ComponentJsonRpc for JsonRpc

Source§

fn method<S: Into<String>>(&self, v: S)

Source§

fn json_rpc_version<S: Into<String>>(&self, v: S)

Source§

fn params(&self, v: Map<String, Value>)

Source§

fn error(&self) -> Option<Map<String, Value>>

Source§

impl Display for JsonRpc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ReactiveEntity> for JsonRpc

Source§

fn from(reactive_entity: ReactiveEntity) -> Self

Converts to this type from the input type.
Source§

impl NamespacedTypeGetter for JsonRpc

Source§

fn namespace(&self) -> String

Returns the namespace of the type.
Source§

fn type_name(&self) -> String

Returns the name of the type.
Source§

impl ParsedUrl for JsonRpc

Source§

impl PropertyInstanceGetter for JsonRpc

Source§

fn get<S: Into<String>>(&self, property_name: S) -> Option<Value>

Returns the json value of the given property by name
Source§

fn as_bool<S: Into<String>>(&self, property_name: S) -> Option<bool>

Returns the boolean value of the given property by name
Source§

fn as_u64<S: Into<String>>(&self, property_name: S) -> Option<u64>

Returns the u64 value of the given property by name
Source§

fn as_i64<S: Into<String>>(&self, property_name: S) -> Option<i64>

Returns the i64 value of the given property by name
Source§

fn as_f64<S: Into<String>>(&self, property_name: S) -> Option<f64>

Returns the f64 value of the given property by name
Source§

fn as_string<S: Into<String>>(&self, property_name: S) -> Option<String>

Returns the string value of the given property by name
Source§

fn as_array<S: Into<String>>(&self, property_name: S) -> Option<Vec<Value>>

Returns the string value of the given property by name
Source§

fn as_object<S: Into<String>>( &self, property_name: S, ) -> Option<Map<String, Value>>

Returns the string value of the given property by name
Source§

impl PropertyInstanceSetter for JsonRpc

Source§

fn set_checked<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name if the property is mutable.
Source§

fn set<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name
Source§

fn set_no_propagate_checked<S: Into<String>>( &self, property_name: S, value: Value, )

Sets the value of the given property by name if the property is mutable. Sends the value down the stream.
Source§

fn set_no_propagate<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name. Sends the value down the stream.
Source§

fn mutability<S: Into<String>>(&self, property_name: S) -> Option<Mutability>

Returns the mutability of the property by name.
Source§

fn set_mutability<S: Into<String>>( &self, property_name: S, mutability: Mutability, )

Sets the mutability of the property by name.
Source§

impl ReactiveInstanceGetter<ReactiveEntity> for JsonRpc

Source§

fn get_reactive_instance(&self) -> &ReactiveEntity

Returns the reactive instance.
Source§

impl ResultObject for JsonRpc

§

fn result(&self) -> Option<Map<String, Value>>

Source§

impl TypeDefinitionGetter for JsonRpc

Source§

fn type_definition(&self) -> TypeDefinition

Returns the type definition of the type.
Source§

impl Url for JsonRpc

Source§

fn get_url(&self) -> Option<String>

Source§

fn set_url<S: Into<String>>(&self, v: S)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T