pub struct Crew(/* private fields */);
Implementations§
Source§impl Crew
impl Crew
pub async fn make_changes<I: IntoIterator<Item = CrewChange>>( &self, changes: I, ) -> Result<SetItemID, String>
pub fn get_credentials_with_role( &self, preferred_role_first: &HashSet<String>, ) -> Vec<(MemberCredential, String, CrewID)>
pub fn get_entrusted_info( &self, secret_kind: &str, info_id: &str, ) -> Result<Val, String>
pub async fn add_update_listener(&self, listener: Listener<Rc<CrewUpdate>>)
pub fn updates( &self, listener_prefix: String, ) -> impl Stream<Item = Rc<CrewUpdate>> + Unpin + 'static
pub async fn handle_set_diff(&self, diff: Diff)
pub async fn wait_for_state(&self, condition: impl Fn(&CrewState) -> bool)
pub fn is_signed_by_member_with_role<T: Clone + Serialize>( &self, signed: &Signed<T>, role: &str, ) -> Result<(), Vec<SignatureError>>
pub async fn create_invitation( &self, invitation_role: &str, ) -> Result<Invitation, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Crew
impl !RefUnwindSafe for Crew
impl !Send for Crew
impl !Sync for Crew
impl Unpin for Crew
impl !UnwindSafe for Crew
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