pub struct ServiceClient { /* private fields */ }Implementations§
Source§impl ServiceClient
impl ServiceClient
pub fn new(endpoint: Option<&str>) -> Result<Self>
pub fn with_hwm(endpoint: Option<&str>, hwm: HighWaterMark) -> Result<Self>
Sourcepub fn with_context_hwm(
context: &Context,
endpoint: Option<&str>,
hwm: HighWaterMark,
) -> Result<Self>
pub fn with_context_hwm( context: &Context, endpoint: Option<&str>, hwm: HighWaterMark, ) -> Result<Self>
Create a client using a shared ZeroMQ context (required for inproc).
pub fn endpoint(&self) -> &str
pub fn high_water_mark(&self) -> Result<HighWaterMark>
pub fn set_high_water_mark(&self, hwm: HighWaterMark) -> Result<()>
pub fn call( &self, service_name: &str, body: &[u8], request_id: Option<&str>, timeout: Option<Duration>, ) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Drop for ServiceClient
impl Drop for ServiceClient
Auto Trait Implementations§
impl !Freeze for ServiceClient
impl RefUnwindSafe for ServiceClient
impl Send for ServiceClient
impl Sync for ServiceClient
impl Unpin for ServiceClient
impl UnsafeUnpin for ServiceClient
impl UnwindSafe for ServiceClient
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