pub struct Stub { /* private fields */ }
Expand description
A Durable Object stub is a client object used to send requests to a remote Durable Object.
Implementations
sourceimpl Stub
impl Stub
sourcepub async fn fetch_with_request(&self, req: Request) -> Result<Response>
pub async fn fetch_with_request(&self, req: Request) -> Result<Response>
Send an internal Request to the Durable Object to which the stub points.
sourcepub async fn fetch_with_str(&self, url: &str) -> Result<Response>
pub async fn fetch_with_str(&self, url: &str) -> Result<Response>
Construct a Request from a URL to the Durable Object to which the stub points.
Auto Trait Implementations
impl RefUnwindSafe for Stub
impl !Send for Stub
impl !Sync for Stub
impl Unpin for Stub
impl UnwindSafe for Stub
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