pub struct AequoraServer { /* private fields */ }Expand description
Cheaply clonable high-level server core. Transport integration belongs in aequora-axum or
another adapter crate.
Implementations§
Source§impl AequoraServer
impl AequoraServer
Sourcepub fn builder() -> AequoraServerBuilder
pub fn builder() -> AequoraServerBuilder
Starts a runtime-validated high-level server builder.
Sourcepub async fn execute(
&self,
credential: &Credential,
operation: EncodedOperation,
) -> Result<ServerOperationOutcome, StableServerError>
pub async fn execute( &self, credential: &Credential, operation: EncodedOperation, ) -> Result<ServerOperationOutcome, StableServerError>
Authenticates, dispatches, and authoritatively commits one semantic operation.
§Errors
Returns a stable authentication, registry, handler, schema, or authority failure.
Trait Implementations§
Source§impl Clone for AequoraServer
impl Clone for AequoraServer
Auto Trait Implementations§
impl !RefUnwindSafe for AequoraServer
impl !UnwindSafe for AequoraServer
impl Freeze for AequoraServer
impl Send for AequoraServer
impl Sync for AequoraServer
impl Unpin for AequoraServer
impl UnsafeUnpin for AequoraServer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more