Skip to main content

LogSource

Trait LogSource 

Source
pub trait LogSource:
    Send
    + Sync
    + Debug {
    // Required method
    fn fetch<'a>(
        &'a self,
        endpoint: &'a str,
        attempt_id: &'a str,
        from: u64,
        limit: u64,
    ) -> LogFuture<'a>;
}
Expand description

Where the webserver gets logs from (workers over HTTP; something else in tests).

Required Methods§

Source

fn fetch<'a>( &'a self, endpoint: &'a str, attempt_id: &'a str, from: u64, limit: u64, ) -> LogFuture<'a>

Up to limit bytes from from of the log of attempt_id, from the worker whose log endpoint is endpoint.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§