Struct fizyr_rpc::SentRequestWriteHandle
source · pub struct SentRequestWriteHandle<Body> { /* private fields */ }
Expand description
A write handle for a sent request.
Unlike SentRequestHandle
, write handles can be cloned.
But unlike regular handles, they can not be used to receive updates or the response from the remote peer.
Write handles can be used to send updates even when the regular handle is mutably borrowed.
You can get more write handles using SentRequestHandle::write_handle()
or by cloning an existing one.
Implementations§
source§impl<Body> SentRequestWriteHandle<Body>
impl<Body> SentRequestWriteHandle<Body>
sourcepub fn request_id(&self) -> u32
pub fn request_id(&self) -> u32
Get the request ID of the sent request.
sourcepub fn service_id(&self) -> i32
pub fn service_id(&self) -> i32
Get the service ID of the initial request message.
Trait Implementations§
source§impl<Body> Clone for SentRequestWriteHandle<Body>
impl<Body> Clone for SentRequestWriteHandle<Body>
Auto Trait Implementations§
impl<Body> !RefUnwindSafe for SentRequestWriteHandle<Body>
impl<Body> Send for SentRequestWriteHandle<Body>where
Body: Send,
impl<Body> Sync for SentRequestWriteHandle<Body>where
Body: Send,
impl<Body> Unpin for SentRequestWriteHandle<Body>
impl<Body> !UnwindSafe for SentRequestWriteHandle<Body>
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