pub struct CakeServiceServe { /* private fields */ }
Implementations§
Source§impl CakeServiceServe
impl CakeServiceServe
pub fn new( svc_name: String, svc_prefix: String, addr: String, reg_adapter: String, reg_addr: String, reg_ttl: String, debug: bool, http_addr: &'static str, ) -> Self
pub fn register_svc(self) -> Result<bool, CakeError>
pub fn register_svc_http(&self, typ: &str) -> Result<bool, CakeError>
pub fn register_svc_external( &self, typ: &str, interval: u64, ) -> Result<bool, CakeError>
pub fn register_fn(&self, fn_key: String, f: CakeFn)
pub fn cakefn_wrap(fn_key: String)
pub async fn run(self) -> Result<()>
Trait Implementations§
Source§impl Clone for CakeServiceServe
impl Clone for CakeServiceServe
Source§fn clone(&self) -> CakeServiceServe
fn clone(&self) -> CakeServiceServe
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Service for CakeServiceServe
impl Service for CakeServiceServe
Auto Trait Implementations§
impl Freeze for CakeServiceServe
impl RefUnwindSafe for CakeServiceServe
impl Send for CakeServiceServe
impl Sync for CakeServiceServe
impl Unpin for CakeServiceServe
impl UnwindSafe for CakeServiceServe
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