pub struct Client { /* private fields */ }Expand description
Nonblocking transport. Prefer WorkerWindow when application work can block.
Implementations§
Source§impl Client
impl Client
pub fn connect(path: &Path, create: Create) -> Result<Self>
Sourcepub fn connect_with_options(
path: &Path,
create: Create,
options: ClientOptions,
) -> Result<Self>
pub fn connect_with_options( path: &Path, create: Create, options: ClientOptions, ) -> Result<Self>
Opt in explicitly. Unsupported servers close the handshake; this SDK never reconnects or silently replays a create without the requested option.
Sourcepub fn relative_pointer_enabled(&self) -> bool
pub fn relative_pointer_enabled(&self) -> bool
True only after the requested extension was echoed by a valid configure.
pub fn configuration(&self) -> Option<Configure>
pub fn can_submit(&self) -> bool
pub fn wants_write(&self) -> bool
pub fn submit(&mut self, frame: Frame) -> Result<()>
pub fn poll(&mut self) -> Result<Vec<Event>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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