pub struct TrustedFlatlandFactorySynchronousProxy { /* private fields */ }
Implementations§
Source§impl TrustedFlatlandFactorySynchronousProxy
impl TrustedFlatlandFactorySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TrustedFlatlandFactoryEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TrustedFlatlandFactoryEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn create_flatland(
&self,
server_end: ServerEnd<FlatlandMarker>,
config: TrustedFlatlandConfig,
___deadline: MonotonicInstant,
) -> Result<TrustedFlatlandFactoryCreateFlatlandResult, Error>
pub fn create_flatland( &self, server_end: ServerEnd<FlatlandMarker>, config: TrustedFlatlandConfig, ___deadline: MonotonicInstant, ) -> Result<TrustedFlatlandFactoryCreateFlatlandResult, Error>
Creates a new Flatland instance with the specified configuration.
§Error
Returns a TrustedFlatlandFactoryError
error if the operation fails.
Trait Implementations§
Source§impl From<TrustedFlatlandFactorySynchronousProxy> for Handle
impl From<TrustedFlatlandFactorySynchronousProxy> for Handle
Source§fn from(value: TrustedFlatlandFactorySynchronousProxy) -> Self
fn from(value: TrustedFlatlandFactorySynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for TrustedFlatlandFactorySynchronousProxy
impl FromClient for TrustedFlatlandFactorySynchronousProxy
Source§type Protocol = TrustedFlatlandFactoryMarker
type Protocol = TrustedFlatlandFactoryMarker
The protocol.
Source§fn from_client(value: ClientEnd<TrustedFlatlandFactoryMarker>) -> Self
fn from_client(value: ClientEnd<TrustedFlatlandFactoryMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for TrustedFlatlandFactorySynchronousProxy
impl SynchronousProxy for TrustedFlatlandFactorySynchronousProxy
Source§type Proxy = TrustedFlatlandFactoryProxy
type Proxy = TrustedFlatlandFactoryProxy
The async proxy for the same protocol.
Source§type Protocol = TrustedFlatlandFactoryMarker
type Protocol = TrustedFlatlandFactoryMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for TrustedFlatlandFactorySynchronousProxy
impl RefUnwindSafe for TrustedFlatlandFactorySynchronousProxy
impl Send for TrustedFlatlandFactorySynchronousProxy
impl Sync for TrustedFlatlandFactorySynchronousProxy
impl Unpin for TrustedFlatlandFactorySynchronousProxy
impl UnwindSafe for TrustedFlatlandFactorySynchronousProxy
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