pub enum SvcDirectoryWatcherRequest {
WatchServiceDirectory {
responder: SvcDirectoryWatcherWatchServiceDirectoryResponder,
},
}
Expand description
Watches for changes in Weave Service Directory entries for a particular endpoint
ID. The endpoint ID is specified in, and this protocol retrieved from
[fuchsia.weave/Stack.GetServiceDirectoryWatcher
].
Variants§
WatchServiceDirectory
Returns a vector of HostPorts for the watched endpoint ID.
First call returns the current list of HostPorts or blocks until the list is available from the service. Subsequent calls will block until a new ServiceDirectory lookup is made and will return the list associated with the watched endpoint ID, which may or may not be the same as prior values.
Calling WatchServiceDirectory when a previous call is still pending will
cause the channel to be closed with ZX_ERR_BAD_STATE
.
Fields
Implementations§
Source§impl SvcDirectoryWatcherRequest
impl SvcDirectoryWatcherRequest
pub fn into_watch_service_directory( self, ) -> Option<SvcDirectoryWatcherWatchServiceDirectoryResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SvcDirectoryWatcherRequest
impl !RefUnwindSafe for SvcDirectoryWatcherRequest
impl Send for SvcDirectoryWatcherRequest
impl Sync for SvcDirectoryWatcherRequest
impl Unpin for SvcDirectoryWatcherRequest
impl !UnwindSafe for SvcDirectoryWatcherRequest
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