Struct ya_service_bus::typed::ServiceBinder
source · pub struct ServiceBinder<'a, 'b, DB, AUX>{ /* private fields */ }
Implementations§
source§impl<'a, 'b, DB, AUX> ServiceBinder<'a, 'b, DB, AUX>
impl<'a, 'b, DB, AUX> ServiceBinder<'a, 'b, DB, AUX>
pub fn new(addr: &'b str, db: &'a DB, aux: AUX) -> Self
pub fn bind<F, Msg: RpcMessage, Output>(self, f: F) -> Self
pub fn bind_with_processor<F, Msg: RpcMessage, Output>(self, f: F) -> Self
Auto Trait Implementations§
impl<'a, 'b, DB, AUX> Freeze for ServiceBinder<'a, 'b, DB, AUX>where
AUX: Freeze,
impl<'a, 'b, DB, AUX> RefUnwindSafe for ServiceBinder<'a, 'b, DB, AUX>where
AUX: RefUnwindSafe,
DB: RefUnwindSafe,
impl<'a, 'b, DB, AUX> Send for ServiceBinder<'a, 'b, DB, AUX>
impl<'a, 'b, DB, AUX> Sync for ServiceBinder<'a, 'b, DB, AUX>
impl<'a, 'b, DB, AUX> Unpin for ServiceBinder<'a, 'b, DB, AUX>where
AUX: Unpin,
impl<'a, 'b, DB, AUX> UnwindSafe for ServiceBinder<'a, 'b, DB, AUX>where
AUX: UnwindSafe,
DB: RefUnwindSafe,
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