pub struct SentRequestWriteHandle<F: Format> { /* private fields */ }Expand description
Write handle for a sent request for the buy_tomatoes service.
Implementations§
Source§impl<F: Format> SentRequestWriteHandle<F>
impl<F: Format> SentRequestWriteHandle<F>
Sourcepub fn inner(&self) -> &SentRequestWriteHandle<F::Body>
pub fn inner(&self) -> &SentRequestWriteHandle<F::Body>
Get the raw request.
Sourcepub fn inner_mut(&self) -> &SentRequestWriteHandle<F::Body>
pub fn inner_mut(&self) -> &SentRequestWriteHandle<F::Body>
Get an exclusive reference to the raw request.
Sourcepub fn into_inner(self) -> SentRequestWriteHandle<F::Body>
pub fn into_inner(self) -> SentRequestWriteHandle<F::Body>
Consume this object to get the raw request.
Sourcepub fn request_id(&self) -> u32
pub fn request_id(&self) -> u32
Get the request ID.
Sourcepub fn service_id(&self) -> i32
pub fn service_id(&self) -> i32
Get the service ID of the request.
Sourcepub async fn send_pay_update(&self, update: &Payment) -> Result<(), Error>where
F: EncodeBody<Payment>,
pub async fn send_pay_update(&self, update: &Payment) -> Result<(), Error>where
F: EncodeBody<Payment>,
Send a pay update to the remote peer.
Sourcepub async fn send_run_away_update(&self) -> Result<(), Error>where
F: EncodeBody<()>,
pub async fn send_run_away_update(&self) -> Result<(), Error>where
F: EncodeBody<()>,
Send a run_away update to the remote peer.
Trait Implementations§
Source§impl<F: Format> Clone for SentRequestWriteHandle<F>
impl<F: Format> Clone for SentRequestWriteHandle<F>
Auto Trait Implementations§
impl<F> Freeze for SentRequestWriteHandle<F>
impl<F> RefUnwindSafe for SentRequestWriteHandle<F>
impl<F> Send for SentRequestWriteHandle<F>
impl<F> Sync for SentRequestWriteHandle<F>
impl<F> Unpin for SentRequestWriteHandle<F>
impl<F> UnsafeUnpin for SentRequestWriteHandle<F>
impl<F> UnwindSafe for SentRequestWriteHandle<F>
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