pub struct TestHarnessSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TestHarnessSynchronousProxy
impl TestHarnessSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TestHarnessEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TestHarnessEvent, 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 get_config(
&self,
___deadline: MonotonicInstant,
) -> Result<HarnessConfig, Error>
pub fn get_config( &self, ___deadline: MonotonicInstant, ) -> Result<HarnessConfig, Error>
Returns the list of properties of the filesystem.
Sourcepub fn create_directory(
&self,
contents: Vec<Option<Box<DirectoryEntry>>>,
flags: Flags,
object_request: ServerEnd<DirectoryMarker>,
) -> Result<(), Error>
pub fn create_directory( &self, contents: Vec<Option<Box<DirectoryEntry>>>, flags: Flags, object_request: ServerEnd<DirectoryMarker>, ) -> Result<(), Error>
Creates a directory with the given contents
and opens it with the specified flags
.
Sourcepub fn open_service_directory(
&self,
___deadline: MonotonicInstant,
) -> Result<ClientEnd<DirectoryMarker>, Error>
pub fn open_service_directory( &self, ___deadline: MonotonicInstant, ) -> Result<ClientEnd<DirectoryMarker>, Error>
Serves a service directory that contains a fuchsia.test.placeholders/Echo instance.
The test harness must have supports_services
reported in it’s config to use this method,
and the service instance should match the discoverable protocol name.
Trait Implementations§
Source§impl Debug for TestHarnessSynchronousProxy
impl Debug for TestHarnessSynchronousProxy
Source§impl SynchronousProxy for TestHarnessSynchronousProxy
impl SynchronousProxy for TestHarnessSynchronousProxy
Source§type Proxy = TestHarnessProxy
type Proxy = TestHarnessProxy
The async proxy for the same protocol.
Source§type Protocol = TestHarnessMarker
type Protocol = TestHarnessMarker
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 TestHarnessSynchronousProxy
impl RefUnwindSafe for TestHarnessSynchronousProxy
impl Send for TestHarnessSynchronousProxy
impl Sync for TestHarnessSynchronousProxy
impl Unpin for TestHarnessSynchronousProxy
impl UnwindSafe for TestHarnessSynchronousProxy
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