pub struct StubServer { /* private fields */ }Expand description
In-memory CollabRemote implementation backed by HashMap state.
Thread-safe via internal Arc<Mutex<StubState>>.
Implementations§
Source§impl StubServer
impl StubServer
Trait Implementations§
Source§impl Clone for StubServer
impl Clone for StubServer
Source§fn clone(&self) -> StubServer
fn clone(&self) -> StubServer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CollabRemote for StubServer
impl CollabRemote for StubServer
Source§fn members(&self, team_id: &str) -> Result<Vec<MemberEntry>, CollabError>
fn members(&self, team_id: &str) -> Result<Vec<MemberEntry>, CollabError>
List all current members of
team_id. Read moreSource§fn deliver_dek(
&self,
team_id: &str,
recipient_pubkey: &str,
envelope: DekEnvelope,
) -> Result<(), CollabError>
fn deliver_dek( &self, team_id: &str, recipient_pubkey: &str, envelope: DekEnvelope, ) -> Result<(), CollabError>
Store an age-encrypted DEK envelope on the server for later retrieval by
the recipient. Read more
Source§fn fetch_dek(
&self,
team_id: &str,
recipient_pubkey: &str,
) -> Result<Option<DekEnvelope>, CollabError>
fn fetch_dek( &self, team_id: &str, recipient_pubkey: &str, ) -> Result<Option<DekEnvelope>, CollabError>
Retrieve the DEK envelope previously delivered to
recipient_pubkey. Read moreSource§fn create_invite(
&self,
team_id: &str,
invitee_pubkey: &str,
) -> Result<InviteToken, CollabError>
fn create_invite( &self, team_id: &str, invitee_pubkey: &str, ) -> Result<InviteToken, CollabError>
Source§fn confirm_invite(
&self,
team_id: &str,
token: &InviteToken,
confirming_pubkey: &str,
) -> Result<(), CollabError>
fn confirm_invite( &self, team_id: &str, token: &InviteToken, confirming_pubkey: &str, ) -> Result<(), CollabError>
Confirm an invite and add
confirming_pubkey to the team membership. Read moreStore an age-encrypted recovery-key share for
custodian_pubkey. Read moreRetrieve the recovery-key share stored for
custodian_pubkey. Read moreSource§impl Debug for StubServer
impl Debug for StubServer
Source§impl Default for StubServer
impl Default for StubServer
Source§fn default() -> StubServer
fn default() -> StubServer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StubServer
impl RefUnwindSafe for StubServer
impl Send for StubServer
impl Sync for StubServer
impl Unpin for StubServer
impl UnsafeUnpin for StubServer
impl UnwindSafe for StubServer
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