pub struct Client { /* private fields */ }
Expand description
A ttrpc Client (sync).
Implementations
sourceimpl Client
impl Client
pub fn connect(sockaddr: &str) -> Result<Client>
Available on crate feature
sync
only.sourcepub fn new(fd: RawFd) -> Client
Available on crate feature sync
only.
pub fn new(fd: RawFd) -> Client
sync
only.Initialize a new Client
from raw file descriptor.
pub fn request(&self, req: Request) -> Result<Response>
Available on crate feature
sync
only.Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more