pub struct LocalService { /* private fields */ }Trait Implementations§
Source§impl From<LocalServiceRequestStream> for LocalService
impl From<LocalServiceRequestStream> for LocalService
Source§fn from(value: LocalServiceRequestStream) -> Self
fn from(value: LocalServiceRequestStream) -> Self
Converts to this type from the input type.
Source§impl LocalService<FuchsiaTypes> for LocalService
impl LocalService<FuchsiaTypes> for LocalService
Source§fn publish(&self) -> <FuchsiaTypes as ServerTypes>::ServiceEventStream
fn publish(&self) -> <FuchsiaTypes as ServerTypes>::ServiceEventStream
Publish the service.
Returns an EventStream providing Events to be processed by the local
service implementation.
Events will only be delivered to one ServiceEventStream at a time.
Calling publish while a previous ServiceEventStream is still active
will return a stream with only Err(AlreadyPublished).
Source§fn notify(&self, characteristic: &Handle, data: &[u8], peers: &[PeerId])
fn notify(&self, characteristic: &Handle, data: &[u8], peers: &[PeerId])
Notify a characteristic.
Leave
peers empty to notify all peers who have configured
notifications. Peers that have not configured for notifications will
not be notified.Source§fn indicate(
&self,
characteristic: &Handle,
data: &[u8],
peers: &[PeerId],
) -> <FuchsiaTypes as ServerTypes>::IndicateConfirmationStream
fn indicate( &self, characteristic: &Handle, data: &[u8], peers: &[PeerId], ) -> <FuchsiaTypes as ServerTypes>::IndicateConfirmationStream
Indicate on a characteristic.
Leave
peers empty to notify all peers who have configured
indications. Peers that have not configured for indications will
be skipped. Returns a stream which has items for each peer that
confirms the notification, and terminates when all peers have either
timed out or confirmed.Auto Trait Implementations§
impl !Freeze for LocalService
impl !RefUnwindSafe for LocalService
impl Send for LocalService
impl Sync for LocalService
impl Unpin for LocalService
impl UnsafeUnpin for LocalService
impl !UnwindSafe for LocalService
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more