Struct BridgeConfig
#[repr(C)]
pub struct BridgeConfig<'a> { pub(in ::bridge) input: Buffer, pub(in ::bridge) dispatch: Closure<'a>, pub(in ::bridge) force_show_panics: bool }
Configuration for establishing an active connection between a server and a
client. The server creates the bridge config (run_server in server.rs),
then passes it to the client through the function pointer in the run field
of client::Client. The client constructs a local Bridge from the config
in TLS during its execution (Bridge::{enter, with} in client.rs).
Fields
input: BufferBuffer used to pass initial input to the client.
dispatch: Closure<'a>Server-side function that the client uses to make requests.
force_show_panics: boolIf 'true', always invoke the default panic hook
Trait Implementations
impl !Send for BridgeConfig<'_>
impl !Sync for BridgeConfig<'_>
Auto Trait Implementations
impl<'a> Freeze for BridgeConfig<'a>
impl<'a> RefUnwindSafe for BridgeConfig<'a>
impl<'a> Unpin for BridgeConfig<'a>
impl<'a> UnsafeUnpin for BridgeConfig<'a>
impl<'a> UnwindSafe for BridgeConfig<'a>
Blanket Implementations
impl<T> Any for BridgeConfig<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for BridgeConfig<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for BridgeConfig<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for BridgeConfig<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for BridgeConfig<'a>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for BridgeConfig<'a>
impl<T, U> Into<U> for BridgeConfig<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for BridgeConfig<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for BridgeConfig<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>