pub struct InProcessTransport<A> { /* private fields */ }Expand description
A Transport backed directly by one Activation.
ⓘ
let client = TicketsClient::new(InProcessTransport::new(Tickets::new(store)));
let tickets = client.list_all(None, None).await?;Implementations§
Source§impl<A: Activation> InProcessTransport<A>
impl<A: Activation> InProcessTransport<A>
Sourcepub fn with_auth(activation: A, auth: AuthContext) -> Self
pub fn with_auth(activation: A, auth: AuthContext) -> Self
Dispatch with an auth context attached to every call — the equivalent of a transport carrying a session cookie.
Sourcepub fn activation(&self) -> &A
pub fn activation(&self) -> &A
Borrow the activation, e.g. to assert on server-side state after a call.
Trait Implementations§
Source§impl<A: Clone> Clone for InProcessTransport<A>
impl<A: Clone> Clone for InProcessTransport<A>
Source§impl<A: Debug> Debug for InProcessTransport<A>
impl<A: Debug> Debug for InProcessTransport<A>
Source§impl<A: Activation> Transport for InProcessTransport<A>
impl<A: Activation> Transport for InProcessTransport<A>
Auto Trait Implementations§
impl<A> Freeze for InProcessTransport<A>where
A: Freeze,
impl<A> RefUnwindSafe for InProcessTransport<A>where
A: RefUnwindSafe,
impl<A> Send for InProcessTransport<A>where
A: Send,
impl<A> Sync for InProcessTransport<A>where
A: Sync,
impl<A> Unpin for InProcessTransport<A>where
A: Unpin,
impl<A> UnsafeUnpin for InProcessTransport<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for InProcessTransport<A>where
A: UnwindSafe,
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