pub struct CellClient { /* private fields */ }Implementations§
Source§impl CellClient
impl CellClient
pub fn connect(socket_path: &str) -> Result<Self>
pub fn connect_to_service(service_name: &str) -> Result<Self>
pub fn connect_with_batch(socket_path: &str, batch_size: usize) -> Result<Self>
pub fn call(&mut self, payload: &[u8]) -> Result<Vec<u8>>
Sourcepub fn queue_request(&mut self, payload: &[u8]) -> Result<bool>
pub fn queue_request(&mut self, payload: &[u8]) -> Result<bool>
Specialized method for pipelining. Queues a request into the buffer. Returns true if flushed.
Sourcepub fn read_n_responses(&mut self, n: usize) -> Result<()>
pub fn read_n_responses(&mut self, n: usize) -> Result<()>
Reads N responses from the socket.
pub fn flush_writes(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for CellClient
impl RefUnwindSafe for CellClient
impl Send for CellClient
impl Sync for CellClient
impl Unpin for CellClient
impl UnsafeUnpin for CellClient
impl UnwindSafe for CellClient
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.