Struct Bridge

pub(in ::bridge::client) struct Bridge<'a> { pub(in ::bridge::client) cached_buffer: Buffer, pub(in ::bridge::client) dispatch: Closure<'a>, pub(in ::bridge::client) globals: ExpnGlobals<Span> }

Fields

cached_buffer: Buffer

Reusable buffer (only clear-ed, never shrunk), primarily used for making requests.

dispatch: Closure<'a>

Server-side function that the client uses to make requests.

globals: ExpnGlobals<Span>

Provided globals for this macro expansion.

Implementations

impl Bridge<'_>

fn with<R>(f: impl FnOnce(&mut Bridge<'_>) -> R) -> R

Trait Implementations

impl<'a> !Send for Bridge<'a>

impl<'a> !Sync for Bridge<'a>

Auto Trait Implementations

impl<'a> Freeze for Bridge<'a>

impl<'a> RefUnwindSafe for Bridge<'a>

impl<'a> Unpin for Bridge<'a>

impl<'a> UnsafeUnpin for Bridge<'a>

impl<'a> UnwindSafe for Bridge<'a>

Blanket Implementations

impl<T> Any for Bridge<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Bridge<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Bridge<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Bridge<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for Bridge<'a> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for Bridge<'a>

impl<T, U> Into<U> for Bridge<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Bridge<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Bridge<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>