pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn new( engine: Engine, vocabularies: Vec<Vocabulary>, limits: Limits, ) -> Result<Self>
Sourcepub fn registry_list(&self) -> Value
pub fn registry_list(&self) -> Value
For the registry routes of the HTTP service: what is held, with the key names of the signatures each file carries. The signatures are listed as the files state them and are not checked here; the one who fetches checks them against keys of their own choosing.
Sourcepub fn registry_file(&self, digest: &str) -> Option<Result<Vec<u8>>>
pub fn registry_file(&self, digest: &str) -> Option<Result<Vec<u8>>>
The file of the held vocabulary with exactly this digest, with the signatures it was loaded with.
Sourcepub fn call(&self, name: &str, args: &Value) -> Result<Value, String>
pub fn call(&self, name: &str, args: &Value) -> Result<Value, String>
Run one tool by name. The HTTP service calls the same function.
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl !UnwindSafe for Server
impl Forget for Server
impl Freeze for Server
impl Move for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
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> 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