pub struct FilterSynchronousProxy { /* private fields */ }
Implementations§
Source§impl FilterSynchronousProxy
impl FilterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<FilterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<FilterEvent, 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 open_controller(
&self,
id: &str,
request: ServerEnd<NamespaceControllerMarker>,
) -> Result<(), Error>
pub fn open_controller( &self, id: &str, request: ServerEnd<NamespaceControllerMarker>, ) -> Result<(), Error>
Open a new or existing NamespaceController
. The server end is
“auto-detached”: in other words, it behaves as if the client has called
Detach
on creation, and the lifetime of the filtering state is not
tied to the client end of the protocol. If the client does call
Detach
on the NamespaceController
, the server will close the
channel.
Clients have unilateral access to add or remove resources owned by the controller, irrespective of other clients’ ownership. This includes the ability to remove resources installed by other clients.
Trait Implementations§
Source§impl Debug for FilterSynchronousProxy
impl Debug for FilterSynchronousProxy
Source§impl SynchronousProxy for FilterSynchronousProxy
impl SynchronousProxy for FilterSynchronousProxy
Source§type Proxy = FilterProxy
type Proxy = FilterProxy
The async proxy for the same protocol.
Source§type Protocol = FilterMarker
type Protocol = FilterMarker
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 FilterSynchronousProxy
impl RefUnwindSafe for FilterSynchronousProxy
impl Send for FilterSynchronousProxy
impl Sync for FilterSynchronousProxy
impl Unpin for FilterSynchronousProxy
impl UnwindSafe for FilterSynchronousProxy
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