pub struct CrewManager(/* private fields */);
Implementations§
Source§impl CrewManager
impl CrewManager
Source§impl CrewManager
impl CrewManager
pub fn new( endr: Node, background: Mofo, credential_source: Box<dyn CredentialSource>, ) -> Self
pub async fn create_crew(&self) -> (Crew, MemberCredential)
pub async fn create_crew_with_parents<I: IntoIterator<Item = CrewID>>( &self, parents: I, use_admin_credential_from_parents: bool, ) -> (Crew, MemberCredential)
pub async fn load_crew(&self, id: CrewID) -> Crew
pub fn load_crew_with_credential_source<'life_self, 'async_recursion>(
&'life_self self,
id: CrewID,
credential_source: impl CredentialSource + 'static,
) -> Pin<Box<dyn Future<Output = Crew> + 'async_recursion>>where
'life_self: 'async_recursion,
pub fn get_loaded_crew(&self, id: CrewID) -> Option<Crew>
pub fn get_loaded_crew_with_credential_source( &self, id: CrewID, credential_source: impl CredentialSource + 'static, ) -> Option<Crew>
pub async fn add_credential( &self, crew_id: CrewID, credential: MemberCredential, )
pub async fn join_crew( &self, invitation: &Invitation, ) -> (Crew, MemberCredential)
Trait Implementations§
Source§impl Clone for CrewManager
impl Clone for CrewManager
Source§fn clone(&self) -> CrewManager
fn clone(&self) -> CrewManager
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CrewManager
impl !RefUnwindSafe for CrewManager
impl !Send for CrewManager
impl !Sync for CrewManager
impl Unpin for CrewManager
impl !UnwindSafe for CrewManager
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