pub struct BusServer {
pub dir: PathBuf,
pub url: String,
pub port: u16,
pub listen_host: String,
pub log: PathBuf,
pub operator_jwt: PathBuf,
pub system_account: String,
pub trust: TrustChain,
pub version: String,
/* private fields */
}Fields§
§dir: PathBuf§url: String§port: u16§listen_host: String§log: PathBuf§operator_jwt: PathBuf§system_account: String§trust: TrustChain§version: StringImplementations§
Source§impl BusServer
impl BusServer
pub async fn start(options: BusOptions) -> Result<Self, RigError>
pub fn pid(&self) -> u32
Sourcepub fn ckbus_env(&self) -> Vec<(String, String)>
pub fn ckbus_env(&self) -> Vec<(String, String)>
Bootstrap inputs for the supervised ck-bus module.
pub fn stored_accounts(&self) -> BTreeSet<String>
pub fn log_text(&self) -> String
pub async fn stop(self)
Auto Trait Implementations§
impl Forget for BusServer
impl Freeze for BusServerwhere
I32NotAllOnes: Freeze,
*const Path is !null: Freeze,
PhantomData<Path>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<BTreeMap<String, FixtureRoot>> is !null: Freeze,
PhantomData<ArcInner<BTreeMap<String, FixtureRoot>>>: Freeze,
*const ArcInner<Mutex<Vec<Option<Principal>>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Vec<Option<Principal>>>>>: Freeze,
impl Move for BusServer
impl RefUnwindSafe for BusServerwhere
I32NotAllOnes: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
Mutex<Vec<Option<Principal>>>: RefUnwindSafe,
impl Send for BusServer
impl Sync for BusServer
impl Unpin for BusServer
impl UnsafeUnpin for BusServerwhere
I32NotAllOnes: UnsafeUnpin,
*const Path is !null: UnsafeUnpin,
PhantomData<Path>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<BTreeMap<String, FixtureRoot>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<String, FixtureRoot>>>: UnsafeUnpin,
*const ArcInner<Mutex<Vec<Option<Principal>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Vec<Option<Principal>>>>>: UnsafeUnpin,
impl UnwindSafe for BusServerwhere
I32NotAllOnes: UnwindSafe,
BoxRaw<Path>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<BTreeMap<String, FixtureRoot>>: UnwindSafe,
Arc<Mutex<Vec<Option<Principal>>>>: UnwindSafe,
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