pub async fn new() -> Result<Self, LogsError> {
        let boot_log = connect_to_protocol::<ReadOnlyLogMarker>().map_err(|source| {
            LogsError::ConnectingToService { protocol: ReadOnlyLogMarker::NAME, source }
        })?;
        let debuglogger =
            boot_log.get().await.map_err(|source| LogsError::RetrievingDebugLog { source })?;
        Ok(KernelDebugLog { debuglogger })
    }
/// Connects to `fuchsia.boot.ReadOnlyLog` to retrieve a handle.
Connects to `fuchsia.boot.ReadOnlyLog` to retrieve a handle.
Connects to ` fuchsia . boot . ReadOnlyLog ` to retrieve a handle .
pub async fn new() -> Result<Self, LogsError> {
        let boot_log = connect_to_protocol::<ReadOnlyLogMarker>().map_err(|source| {
            LogsError::ConnectingToService { protocol: ReadOnlyLogMarker::NAME, source }
        })?;
        let debuglogger =
            boot_log.get().await.map_err(|source| LogsError::RetrievingDebugLog { source })?;
        Ok(KernelDebugLog { debuglogger })
    }
pub async fn new ( ) -> Result < Self , LogsError > { let boot_log = connect_to_protocol :: < ReadOnlyLogMarker > ( ) . map_err ( | source | { LogsError :: ConnectingToService { protocol : ReadOnlyLogMarker :: NAME , source } } ) ? ; let debuglogger = boot_log . get ( ) . await . map_err ( | source | LogsError :: RetrievingDebugLog { source } ) ? ; Ok ( KernelDebugLog { debuglogger } ) }
Connects to `fuchsia.boot.ReadOnlyLog` to retrieve a handle.
Connects to ` fuchsia . boot . ReadOnlyLog ` to retrieve a handle .