pub struct JsAgent(/* private fields */);Implementations§
Source§impl JsAgent
impl JsAgent
pub fn to_js_string(&self) -> String
pub fn is_individual(&self) -> bool
pub fn is_group(&self) -> bool
pub fn is_document(&self) -> bool
pub fn id(&self) -> JsIdentifier
Sourcepub async fn key_ops(&self) -> Result<Map, JsSerializationError>
pub async fn key_ops(&self) -> Result<Map, JsSerializationError>
Returns prekey operations for this agent as a Map of hash -> serialized bytes for StaticEvent
Sourcepub async fn key_op_hashes(&self) -> Vec<Uint8Array>
pub async fn key_op_hashes(&self) -> Vec<Uint8Array>
Returns prekey operation hashes for this Agent as an array of hash bytes.
Methods from Deref<Target = Agent<JsSigner, JsChangeId, JsEventHandler>>§
pub fn id(&self) -> Identifier
pub fn agent_id(&self) -> AgentId
pub async fn individual_ids(&self) -> HashSet<IndividualId>
pub async fn pick_individual_prekeys( &self, doc_id: DocumentId, ) -> HashMap<IndividualId, ShareKey>
pub async fn key_ops(&self) -> CaMap<KeyOp>
Trait Implementations§
Source§impl From<Agent<JsSigner, JsChangeId, JsEventHandler>> for JsAgent
impl From<Agent<JsSigner, JsChangeId, JsEventHandler>> for JsAgent
Source§fn from(value: Agent<JsSigner, JsChangeId, JsEventHandler>) -> Self
fn from(value: Agent<JsSigner, JsChangeId, JsEventHandler>) -> Self
Converts to this type from the input type.
Source§impl From<JsAgent> for Agent<JsSigner, JsChangeId, JsEventHandler>
impl From<JsAgent> for Agent<JsSigner, JsChangeId, JsEventHandler>
Source§impl FromWasmAbi for JsAgent
impl FromWasmAbi for JsAgent
Source§impl IntoWasmAbi for JsAgent
impl IntoWasmAbi for JsAgent
Source§impl LongRefFromWasmAbi for JsAgent
impl LongRefFromWasmAbi for JsAgent
Source§impl OptionFromWasmAbi for JsAgent
impl OptionFromWasmAbi for JsAgent
Source§impl OptionIntoWasmAbi for JsAgent
impl OptionIntoWasmAbi for JsAgent
Source§impl RefFromWasmAbi for JsAgent
impl RefFromWasmAbi for JsAgent
Source§impl RefMutFromWasmAbi for JsAgent
impl RefMutFromWasmAbi for JsAgent
impl SupportsConstructor for JsAgent
impl SupportsInstanceProperty for JsAgent
impl SupportsStaticProperty for JsAgent
Source§impl TryFromJsValue for JsAgent
impl TryFromJsValue for JsAgent
Source§impl VectorFromWasmAbi for JsAgent
impl VectorFromWasmAbi for JsAgent
Source§impl VectorIntoWasmAbi for JsAgent
impl VectorIntoWasmAbi for JsAgent
Auto Trait Implementations§
impl !RefUnwindSafe for JsAgent
impl !Send for JsAgent
impl !Sync for JsAgent
impl !UnwindSafe for JsAgent
impl Freeze for JsAgent
impl Unpin for JsAgent
impl UnsafeUnpin for JsAgent
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§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> 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.