pub struct TraceutilFacade {}
Expand description
Perform Traceutil operations.
Note this object is shared among all threads created by server.
This facade does not hold onto a Traceutil proxy as the server may be long-running while individual tests set up and tear down Traceutil.
WARNING: Use of this facade is discouraged as its functionality is only to download traces that were collected through other means (such as running the trace binary over ssh). Instead, see TracingFacade, which allows for control of the tracing system as well.
Implementations§
Source§impl TraceutilFacade
impl TraceutilFacade
pub fn new() -> TraceutilFacade
Sourcepub async fn get_trace_file(&self, args: Value) -> Result<Value, Error>
pub async fn get_trace_file(&self, args: Value) -> Result<Value, Error>
Gets data from the specified path starting from an optional offset.
Loading and returning the entire file is problematic for large trace files, so will return up to |MAX_CHUNK_SIZE| bytes at once. The bytes of the file are returned in a field called |data|. If there is more data to read, then a field |next_offset| will be returned that indicates where it left off.
Trait Implementations§
Source§impl Debug for TraceutilFacade
impl Debug for TraceutilFacade
Source§impl Facade for TraceutilFacade
impl Facade for TraceutilFacade
Source§fn handle_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for TraceutilFacade
impl RefUnwindSafe for TraceutilFacade
impl Send for TraceutilFacade
impl Sync for TraceutilFacade
impl Unpin for TraceutilFacade
impl UnwindSafe for TraceutilFacade
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
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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