Struct archivist_lib::logs::listener::Listener
source · pub struct Listener { /* private fields */ }
Expand description
An individual log listener. Wraps the FIDL type LogListenerProxy
in filtering options provided
when connecting.
Implementations§
source§impl Listener
impl Listener
sourcepub fn new(
log_listener: ClientEnd<LogListenerSafeMarker>,
options: Option<Box<LogFilterOptions>>
) -> Result<Self, ListenerError>
pub fn new( log_listener: ClientEnd<LogListenerSafeMarker>, options: Option<Box<LogFilterOptions>> ) -> Result<Self, ListenerError>
Create a new Listener
. Fails if client
can’t be converted into a LogListenerProxy
or
if LogFilterOptions
are invalid.
pub fn spawn( self, logs: impl Stream<Item = Arc<LogsData>> + Send + Unpin + 'static, call_done: bool ) -> Task<()>
Auto Trait Implementations§
impl Freeze for Listener
impl !RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl !UnwindSafe for Listener
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